@open-mercato/core 0.4.7-main-1768da2e43 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (504) hide show
  1. package/AGENTS.md +1 -0
  2. package/agentic/standalone-guide.md +251 -0
  3. package/dist/generated/entities/carrier_shipment/index.js +37 -0
  4. package/dist/generated/entities/carrier_shipment/index.js.map +7 -0
  5. package/dist/generated/entities/gateway_transaction/index.js +47 -0
  6. package/dist/generated/entities/gateway_transaction/index.js.map +7 -0
  7. package/dist/generated/entities/webhook_processed_event/index.js +17 -0
  8. package/dist/generated/entities/webhook_processed_event/index.js.map +7 -0
  9. package/dist/generated/entities.ids.generated.js +10 -1
  10. package/dist/generated/entities.ids.generated.js.map +2 -2
  11. package/dist/generated/entity-fields-registry.js +6 -0
  12. package/dist/generated/entity-fields-registry.js.map +2 -2
  13. package/dist/modules/auth/commands/users.js +3 -0
  14. package/dist/modules/auth/commands/users.js.map +2 -2
  15. package/dist/modules/auth/services/authService.js +4 -0
  16. package/dist/modules/auth/services/authService.js.map +2 -2
  17. package/dist/modules/catalog/api/bulk-delete/route.js +86 -0
  18. package/dist/modules/catalog/api/bulk-delete/route.js.map +7 -0
  19. package/dist/modules/catalog/api/prices/route.js +39 -6
  20. package/dist/modules/catalog/api/prices/route.js.map +2 -2
  21. package/dist/modules/catalog/api/products/route.js +6 -11
  22. package/dist/modules/catalog/api/products/route.js.map +2 -2
  23. package/dist/modules/catalog/backend/catalog/products/[productId]/variants/[variantId]/page.js +10 -3
  24. package/dist/modules/catalog/backend/catalog/products/[productId]/variants/[variantId]/page.js.map +2 -2
  25. package/dist/modules/catalog/backend/catalog/products/[productId]/variants/create/page.js +10 -3
  26. package/dist/modules/catalog/backend/catalog/products/[productId]/variants/create/page.js.map +2 -2
  27. package/dist/modules/catalog/commands/products.js +2 -0
  28. package/dist/modules/catalog/commands/products.js.map +2 -2
  29. package/dist/modules/catalog/commands/variants.js +38 -4
  30. package/dist/modules/catalog/commands/variants.js.map +2 -2
  31. package/dist/modules/catalog/components/products/ProductsDataTable.js +9 -1
  32. package/dist/modules/catalog/components/products/ProductsDataTable.js.map +2 -2
  33. package/dist/modules/catalog/components/products/variantForm.js +13 -0
  34. package/dist/modules/catalog/components/products/variantForm.js.map +2 -2
  35. package/dist/modules/catalog/lib/bulkDelete.js +70 -0
  36. package/dist/modules/catalog/lib/bulkDelete.js.map +7 -0
  37. package/dist/modules/catalog/widgets/injection/product-bulk-delete/widget.js +185 -0
  38. package/dist/modules/catalog/widgets/injection/product-bulk-delete/widget.js.map +7 -0
  39. package/dist/modules/catalog/widgets/injection-table.js +9 -1
  40. package/dist/modules/catalog/widgets/injection-table.js.map +2 -2
  41. package/dist/modules/catalog/workers/catalog-product-bulk-delete.js +40 -0
  42. package/dist/modules/catalog/workers/catalog-product-bulk-delete.js.map +7 -0
  43. package/dist/modules/customers/backend/customers/deals/create/page.js +2 -0
  44. package/dist/modules/customers/backend/customers/deals/create/page.js.map +2 -2
  45. package/dist/modules/data_sync/api/options.js +52 -0
  46. package/dist/modules/data_sync/api/options.js.map +7 -0
  47. package/dist/modules/data_sync/api/run.js +30 -35
  48. package/dist/modules/data_sync/api/run.js.map +2 -2
  49. package/dist/modules/data_sync/api/runs/[id]/cancel.js +14 -5
  50. package/dist/modules/data_sync/api/runs/[id]/cancel.js.map +2 -2
  51. package/dist/modules/data_sync/api/runs/[id]/retry.js +15 -30
  52. package/dist/modules/data_sync/api/runs/[id]/retry.js.map +2 -2
  53. package/dist/modules/data_sync/api/schedules/[id]/route.js +109 -0
  54. package/dist/modules/data_sync/api/schedules/[id]/route.js.map +7 -0
  55. package/dist/modules/data_sync/api/schedules/route.js +72 -0
  56. package/dist/modules/data_sync/api/schedules/route.js.map +7 -0
  57. package/dist/modules/data_sync/api/schedules/serialize.js +21 -0
  58. package/dist/modules/data_sync/api/schedules/serialize.js.map +7 -0
  59. package/dist/modules/data_sync/backend/data-sync/page.js +656 -47
  60. package/dist/modules/data_sync/backend/data-sync/page.js.map +2 -2
  61. package/dist/modules/data_sync/backend/data-sync/page.meta.js +2 -2
  62. package/dist/modules/data_sync/backend/data-sync/page.meta.js.map +1 -1
  63. package/dist/modules/data_sync/backend/data-sync/runs/[id]/page.js +153 -46
  64. package/dist/modules/data_sync/backend/data-sync/runs/[id]/page.js.map +2 -2
  65. package/dist/modules/data_sync/components/IntegrationScheduleTab.js +394 -0
  66. package/dist/modules/data_sync/components/IntegrationScheduleTab.js.map +7 -0
  67. package/dist/modules/data_sync/data/validators.js +32 -0
  68. package/dist/modules/data_sync/data/validators.js.map +2 -2
  69. package/dist/modules/data_sync/di.js +2 -0
  70. package/dist/modules/data_sync/di.js.map +2 -2
  71. package/dist/modules/data_sync/lib/id-mapping.js +24 -2
  72. package/dist/modules/data_sync/lib/id-mapping.js.map +2 -2
  73. package/dist/modules/data_sync/lib/start-run.js +57 -0
  74. package/dist/modules/data_sync/lib/start-run.js.map +7 -0
  75. package/dist/modules/data_sync/lib/sync-engine.js +93 -4
  76. package/dist/modules/data_sync/lib/sync-engine.js.map +2 -2
  77. package/dist/modules/data_sync/lib/sync-run-service.js +5 -1
  78. package/dist/modules/data_sync/lib/sync-run-service.js.map +2 -2
  79. package/dist/modules/data_sync/lib/sync-schedule-service.js +138 -0
  80. package/dist/modules/data_sync/lib/sync-schedule-service.js.map +7 -0
  81. package/dist/modules/data_sync/workers/sync-export.js +28 -2
  82. package/dist/modules/data_sync/workers/sync-export.js.map +2 -2
  83. package/dist/modules/data_sync/workers/sync-import.js +28 -2
  84. package/dist/modules/data_sync/workers/sync-import.js.map +2 -2
  85. package/dist/modules/data_sync/workers/sync-scheduled.js +5 -0
  86. package/dist/modules/data_sync/workers/sync-scheduled.js.map +2 -2
  87. package/dist/modules/directory/api/get/tenants/lookup.js +1 -0
  88. package/dist/modules/directory/api/get/tenants/lookup.js.map +2 -2
  89. package/dist/modules/directory/backend/directory/organizations/create/page.js +2 -1
  90. package/dist/modules/directory/backend/directory/organizations/create/page.js.map +2 -2
  91. package/dist/modules/entities/api/definitions.js +5 -2
  92. package/dist/modules/entities/api/definitions.js.map +2 -2
  93. package/dist/modules/entities/lib/field-definitions.js +3 -1
  94. package/dist/modules/entities/lib/field-definitions.js.map +2 -2
  95. package/dist/modules/integrations/api/[id]/route.js +47 -21
  96. package/dist/modules/integrations/api/[id]/route.js.map +2 -2
  97. package/dist/modules/integrations/api/logs/route.js +52 -26
  98. package/dist/modules/integrations/api/logs/route.js.map +2 -2
  99. package/dist/modules/integrations/api/route.js +40 -10
  100. package/dist/modules/integrations/api/route.js.map +2 -2
  101. package/dist/modules/integrations/api/umes-read.js +121 -0
  102. package/dist/modules/integrations/api/umes-read.js.map +7 -0
  103. package/dist/modules/integrations/backend/integrations/[id]/page.js +836 -189
  104. package/dist/modules/integrations/backend/integrations/[id]/page.js.map +2 -2
  105. package/dist/modules/integrations/backend/integrations/bundle/[id]/page.js +30 -9
  106. package/dist/modules/integrations/backend/integrations/bundle/[id]/page.js.map +2 -2
  107. package/dist/modules/integrations/backend/integrations/detail-page-widgets.js +46 -0
  108. package/dist/modules/integrations/backend/integrations/detail-page-widgets.js.map +7 -0
  109. package/dist/modules/integrations/backend/integrations/page.js +78 -62
  110. package/dist/modules/integrations/backend/integrations/page.js.map +2 -2
  111. package/dist/modules/integrations/backend/integrations/page.meta.js +2 -2
  112. package/dist/modules/integrations/backend/integrations/page.meta.js.map +1 -1
  113. package/dist/modules/integrations/lib/state-service.js +15 -1
  114. package/dist/modules/integrations/lib/state-service.js.map +2 -2
  115. package/dist/modules/integrations/setup.js +2 -2
  116. package/dist/modules/integrations/setup.js.map +2 -2
  117. package/dist/modules/messages/api/[id]/route.js +24 -22
  118. package/dist/modules/messages/api/[id]/route.js.map +2 -2
  119. package/dist/modules/payment_gateways/acl.js +12 -0
  120. package/dist/modules/payment_gateways/acl.js.map +7 -0
  121. package/dist/modules/payment_gateways/api/cancel/route.js +55 -0
  122. package/dist/modules/payment_gateways/api/cancel/route.js.map +7 -0
  123. package/dist/modules/payment_gateways/api/capture/route.js +55 -0
  124. package/dist/modules/payment_gateways/api/capture/route.js.map +7 -0
  125. package/dist/modules/payment_gateways/api/interceptors.js +24 -0
  126. package/dist/modules/payment_gateways/api/interceptors.js.map +7 -0
  127. package/dist/modules/payment_gateways/api/openapi.js +5 -0
  128. package/dist/modules/payment_gateways/api/openapi.js.map +7 -0
  129. package/dist/modules/payment_gateways/api/refund/route.js +56 -0
  130. package/dist/modules/payment_gateways/api/refund/route.js.map +7 -0
  131. package/dist/modules/payment_gateways/api/sessions/route.js +74 -0
  132. package/dist/modules/payment_gateways/api/sessions/route.js.map +7 -0
  133. package/dist/modules/payment_gateways/api/status/route.js +66 -0
  134. package/dist/modules/payment_gateways/api/status/route.js.map +7 -0
  135. package/dist/modules/payment_gateways/api/transactions/[id]/route.js +118 -0
  136. package/dist/modules/payment_gateways/api/transactions/[id]/route.js.map +7 -0
  137. package/dist/modules/payment_gateways/api/transactions/route.js +113 -0
  138. package/dist/modules/payment_gateways/api/transactions/route.js.map +7 -0
  139. package/dist/modules/payment_gateways/api/webhook/[provider]/route.js +136 -0
  140. package/dist/modules/payment_gateways/api/webhook/[provider]/route.js.map +7 -0
  141. package/dist/modules/payment_gateways/backend/payment-gateways/page.js +496 -0
  142. package/dist/modules/payment_gateways/backend/payment-gateways/page.js.map +7 -0
  143. package/dist/modules/payment_gateways/backend/payment-gateways/page.meta.js +23 -0
  144. package/dist/modules/payment_gateways/backend/payment-gateways/page.meta.js.map +7 -0
  145. package/dist/modules/payment_gateways/data/enrichers.js +5 -0
  146. package/dist/modules/payment_gateways/data/enrichers.js.map +7 -0
  147. package/dist/modules/payment_gateways/data/entities.js +131 -0
  148. package/dist/modules/payment_gateways/data/entities.js.map +7 -0
  149. package/dist/modules/payment_gateways/data/validators.js +57 -0
  150. package/dist/modules/payment_gateways/data/validators.js.map +7 -0
  151. package/dist/modules/payment_gateways/di.js +16 -0
  152. package/dist/modules/payment_gateways/di.js.map +7 -0
  153. package/dist/modules/payment_gateways/events.js +21 -0
  154. package/dist/modules/payment_gateways/events.js.map +7 -0
  155. package/dist/modules/payment_gateways/i18n/en.js +6 -0
  156. package/dist/modules/payment_gateways/i18n/en.js.map +7 -0
  157. package/dist/modules/payment_gateways/i18n/pl.js +6 -0
  158. package/dist/modules/payment_gateways/i18n/pl.js.map +7 -0
  159. package/dist/modules/payment_gateways/index.js +9 -0
  160. package/dist/modules/payment_gateways/index.js.map +7 -0
  161. package/dist/modules/payment_gateways/lib/gateway-service.js +378 -0
  162. package/dist/modules/payment_gateways/lib/gateway-service.js.map +7 -0
  163. package/dist/modules/payment_gateways/lib/queue.js +17 -0
  164. package/dist/modules/payment_gateways/lib/queue.js.map +7 -0
  165. package/dist/modules/payment_gateways/lib/status-machine.js +29 -0
  166. package/dist/modules/payment_gateways/lib/status-machine.js.map +7 -0
  167. package/dist/modules/payment_gateways/lib/webhook-processor.js +88 -0
  168. package/dist/modules/payment_gateways/lib/webhook-processor.js.map +7 -0
  169. package/dist/modules/payment_gateways/lib/webhook-utils.js +42 -0
  170. package/dist/modules/payment_gateways/lib/webhook-utils.js.map +7 -0
  171. package/dist/modules/payment_gateways/migrations/Migration20260305122155.js +19 -0
  172. package/dist/modules/payment_gateways/migrations/Migration20260305122155.js.map +7 -0
  173. package/dist/modules/payment_gateways/setup.js +13 -0
  174. package/dist/modules/payment_gateways/setup.js.map +7 -0
  175. package/dist/modules/payment_gateways/widgets/injection-table.js +7 -0
  176. package/dist/modules/payment_gateways/widgets/injection-table.js.map +7 -0
  177. package/dist/modules/payment_gateways/workers/status-poller.js +44 -0
  178. package/dist/modules/payment_gateways/workers/status-poller.js.map +7 -0
  179. package/dist/modules/payment_gateways/workers/webhook-processor.js +20 -0
  180. package/dist/modules/payment_gateways/workers/webhook-processor.js.map +7 -0
  181. package/dist/modules/progress/api/active/route.js +3 -1
  182. package/dist/modules/progress/api/active/route.js.map +2 -2
  183. package/dist/modules/progress/api/jobs/[id]/route.js +1 -1
  184. package/dist/modules/progress/api/jobs/[id]/route.js.map +2 -2
  185. package/dist/modules/progress/api/jobs/route.js +1 -1
  186. package/dist/modules/progress/api/jobs/route.js.map +2 -2
  187. package/dist/modules/progress/lib/events.js.map +1 -1
  188. package/dist/modules/progress/lib/progressService.js.map +2 -2
  189. package/dist/modules/progress/lib/progressServiceImpl.js +42 -1
  190. package/dist/modules/progress/lib/progressServiceImpl.js.map +2 -2
  191. package/dist/modules/query_index/lib/document.js +35 -1
  192. package/dist/modules/query_index/lib/document.js.map +2 -2
  193. package/dist/modules/query_index/lib/engine.js +91 -4
  194. package/dist/modules/query_index/lib/engine.js.map +2 -2
  195. package/dist/modules/query_index/lib/indexer.js +2 -0
  196. package/dist/modules/query_index/lib/indexer.js.map +2 -2
  197. package/dist/modules/sales/api/adjustment-kinds/route.js +3 -9
  198. package/dist/modules/sales/api/adjustment-kinds/route.js.map +2 -2
  199. package/dist/modules/sales/api/channels/route.js +3 -10
  200. package/dist/modules/sales/api/channels/route.js.map +2 -2
  201. package/dist/modules/sales/api/delivery-windows/route.js +3 -10
  202. package/dist/modules/sales/api/delivery-windows/route.js.map +2 -2
  203. package/dist/modules/sales/api/payment-methods/route.js +3 -11
  204. package/dist/modules/sales/api/payment-methods/route.js.map +2 -2
  205. package/dist/modules/sales/api/payments/route.js.map +2 -2
  206. package/dist/modules/sales/api/price-kinds/route.js +3 -5
  207. package/dist/modules/sales/api/price-kinds/route.js.map +2 -2
  208. package/dist/modules/sales/api/shipping-methods/route.js +3 -11
  209. package/dist/modules/sales/api/shipping-methods/route.js.map +2 -2
  210. package/dist/modules/sales/api/tags/route.js +3 -9
  211. package/dist/modules/sales/api/tags/route.js.map +2 -2
  212. package/dist/modules/sales/api/tax-rates/route.js +3 -13
  213. package/dist/modules/sales/api/tax-rates/route.js.map +2 -2
  214. package/dist/modules/sales/api/utils.js +9 -0
  215. package/dist/modules/sales/api/utils.js.map +2 -2
  216. package/dist/modules/sales/backend/sales/documents/[id]/page.js +6 -9
  217. package/dist/modules/sales/backend/sales/documents/[id]/page.js.map +2 -2
  218. package/dist/modules/sales/commands/payments.js +16 -2
  219. package/dist/modules/sales/commands/payments.js.map +2 -2
  220. package/dist/modules/sales/components/documents/AdjustmentsSection.js +1 -5
  221. package/dist/modules/sales/components/documents/AdjustmentsSection.js.map +2 -2
  222. package/dist/modules/sales/components/documents/ItemsSection.js +1 -5
  223. package/dist/modules/sales/components/documents/ItemsSection.js.map +2 -2
  224. package/dist/modules/sales/components/documents/PaymentsSection.js +9 -15
  225. package/dist/modules/sales/components/documents/PaymentsSection.js.map +2 -2
  226. package/dist/modules/sales/components/documents/SalesDocumentForm.js +24 -6
  227. package/dist/modules/sales/components/documents/SalesDocumentForm.js.map +2 -2
  228. package/dist/modules/sales/components/documents/ShipmentsSection.js +2 -6
  229. package/dist/modules/sales/components/documents/ShipmentsSection.js.map +2 -2
  230. package/dist/modules/sales/data/enrichers.js +72 -0
  231. package/dist/modules/sales/data/enrichers.js.map +7 -0
  232. package/dist/modules/sales/data/validators.js +9 -8
  233. package/dist/modules/sales/data/validators.js.map +2 -2
  234. package/dist/modules/sales/lib/makeSalesLineRoute.js +3 -0
  235. package/dist/modules/sales/lib/makeSalesLineRoute.js.map +2 -2
  236. package/dist/modules/sales/lib/makeStatusDictionaryRoute.js +3 -9
  237. package/dist/modules/sales/lib/makeStatusDictionaryRoute.js.map +2 -2
  238. package/dist/modules/sales/widgets/injection/payment-gateway-config-field/widget.js +29 -0
  239. package/dist/modules/sales/widgets/injection/payment-gateway-config-field/widget.js.map +7 -0
  240. package/dist/modules/sales/widgets/injection/payment-gateway-status-column/widget.js +23 -0
  241. package/dist/modules/sales/widgets/injection/payment-gateway-status-column/widget.js.map +7 -0
  242. package/dist/modules/sales/widgets/injection-table.js +13 -1
  243. package/dist/modules/sales/widgets/injection-table.js.map +2 -2
  244. package/dist/modules/shipping_carriers/acl.js +10 -0
  245. package/dist/modules/shipping_carriers/acl.js.map +7 -0
  246. package/dist/modules/shipping_carriers/api/cancel/route.js +55 -0
  247. package/dist/modules/shipping_carriers/api/cancel/route.js.map +7 -0
  248. package/dist/modules/shipping_carriers/api/interceptors.js +21 -0
  249. package/dist/modules/shipping_carriers/api/interceptors.js.map +7 -0
  250. package/dist/modules/shipping_carriers/api/openapi.js +5 -0
  251. package/dist/modules/shipping_carriers/api/openapi.js.map +7 -0
  252. package/dist/modules/shipping_carriers/api/rates/route.js +55 -0
  253. package/dist/modules/shipping_carriers/api/rates/route.js.map +7 -0
  254. package/dist/modules/shipping_carriers/api/shipments/route.js +61 -0
  255. package/dist/modules/shipping_carriers/api/shipments/route.js.map +7 -0
  256. package/dist/modules/shipping_carriers/api/tracking/route.js +58 -0
  257. package/dist/modules/shipping_carriers/api/tracking/route.js.map +7 -0
  258. package/dist/modules/shipping_carriers/api/webhook/[provider]/route.js +119 -0
  259. package/dist/modules/shipping_carriers/api/webhook/[provider]/route.js.map +7 -0
  260. package/dist/modules/shipping_carriers/data/enrichers.js +82 -0
  261. package/dist/modules/shipping_carriers/data/enrichers.js.map +7 -0
  262. package/dist/modules/shipping_carriers/data/entities.js +80 -0
  263. package/dist/modules/shipping_carriers/data/entities.js.map +7 -0
  264. package/dist/modules/shipping_carriers/data/validators.js +49 -0
  265. package/dist/modules/shipping_carriers/data/validators.js.map +7 -0
  266. package/dist/modules/shipping_carriers/di.js +15 -0
  267. package/dist/modules/shipping_carriers/di.js.map +7 -0
  268. package/dist/modules/shipping_carriers/events.js +19 -0
  269. package/dist/modules/shipping_carriers/events.js.map +7 -0
  270. package/dist/modules/shipping_carriers/i18n/en.js +11 -0
  271. package/dist/modules/shipping_carriers/i18n/en.js.map +7 -0
  272. package/dist/modules/shipping_carriers/i18n/pl.js +11 -0
  273. package/dist/modules/shipping_carriers/i18n/pl.js.map +7 -0
  274. package/dist/modules/shipping_carriers/index.js +9 -0
  275. package/dist/modules/shipping_carriers/index.js.map +7 -0
  276. package/dist/modules/shipping_carriers/lib/adapter-registry.js +29 -0
  277. package/dist/modules/shipping_carriers/lib/adapter-registry.js.map +7 -0
  278. package/dist/modules/shipping_carriers/lib/adapter.js +1 -0
  279. package/dist/modules/shipping_carriers/lib/adapter.js.map +7 -0
  280. package/dist/modules/shipping_carriers/lib/queue.js +17 -0
  281. package/dist/modules/shipping_carriers/lib/queue.js.map +7 -0
  282. package/dist/modules/shipping_carriers/lib/shipping-service.js +155 -0
  283. package/dist/modules/shipping_carriers/lib/shipping-service.js.map +7 -0
  284. package/dist/modules/shipping_carriers/lib/status-sync.js +37 -0
  285. package/dist/modules/shipping_carriers/lib/status-sync.js.map +7 -0
  286. package/dist/modules/shipping_carriers/migrations/Migration20260305170000.js +16 -0
  287. package/dist/modules/shipping_carriers/migrations/Migration20260305170000.js.map +7 -0
  288. package/dist/modules/shipping_carriers/setup.js +13 -0
  289. package/dist/modules/shipping_carriers/setup.js.map +7 -0
  290. package/dist/modules/shipping_carriers/widgets/injection/create-shipment-button/widget.js +25 -0
  291. package/dist/modules/shipping_carriers/widgets/injection/create-shipment-button/widget.js.map +7 -0
  292. package/dist/modules/shipping_carriers/widgets/injection/tracking-column/widget.js +23 -0
  293. package/dist/modules/shipping_carriers/widgets/injection/tracking-column/widget.js.map +7 -0
  294. package/dist/modules/shipping_carriers/widgets/injection/tracking-status-badge/widget.js +40 -0
  295. package/dist/modules/shipping_carriers/widgets/injection/tracking-status-badge/widget.js.map +7 -0
  296. package/dist/modules/shipping_carriers/widgets/injection-table.js +24 -0
  297. package/dist/modules/shipping_carriers/widgets/injection-table.js.map +7 -0
  298. package/dist/modules/shipping_carriers/workers/status-poller.js +21 -0
  299. package/dist/modules/shipping_carriers/workers/status-poller.js.map +7 -0
  300. package/dist/modules/shipping_carriers/workers/webhook-processor.js +54 -0
  301. package/dist/modules/shipping_carriers/workers/webhook-processor.js.map +7 -0
  302. package/dist/modules/translations/api/get/locales.js +1 -0
  303. package/dist/modules/translations/api/get/locales.js.map +2 -2
  304. package/dist/modules/translations/api/put/locales.js +1 -0
  305. package/dist/modules/translations/api/put/locales.js.map +2 -2
  306. package/dist/modules/workflows/api/definitions/[id]/route.js +3 -2
  307. package/dist/modules/workflows/api/definitions/[id]/route.js.map +2 -2
  308. package/dist/modules/workflows/api/definitions/route.js +30 -8
  309. package/dist/modules/workflows/api/definitions/route.js.map +2 -2
  310. package/dist/modules/workflows/api/definitions/serialize.js +25 -0
  311. package/dist/modules/workflows/api/definitions/serialize.js.map +7 -0
  312. package/dist/modules/workflows/backend/definitions/page.js +32 -1
  313. package/dist/modules/workflows/backend/definitions/page.js.map +2 -2
  314. package/generated/entities/carrier_shipment/index.ts +17 -0
  315. package/generated/entities/gateway_transaction/index.ts +22 -0
  316. package/generated/entities/webhook_processed_event/index.ts +7 -0
  317. package/generated/entities.ids.generated.ts +10 -1
  318. package/generated/entity-fields-registry.ts +6 -0
  319. package/jest.config.cjs +1 -0
  320. package/package.json +6 -4
  321. package/src/modules/auth/commands/users.ts +4 -0
  322. package/src/modules/auth/i18n/de.json +5 -0
  323. package/src/modules/auth/i18n/en.json +5 -0
  324. package/src/modules/auth/i18n/es.json +5 -0
  325. package/src/modules/auth/i18n/pl.json +5 -0
  326. package/src/modules/auth/services/authService.ts +5 -0
  327. package/src/modules/catalog/api/bulk-delete/route.ts +93 -0
  328. package/src/modules/catalog/api/prices/route.ts +53 -6
  329. package/src/modules/catalog/api/products/route.ts +6 -11
  330. package/src/modules/catalog/backend/catalog/products/[productId]/variants/[variantId]/page.tsx +9 -2
  331. package/src/modules/catalog/backend/catalog/products/[productId]/variants/create/page.tsx +9 -2
  332. package/src/modules/catalog/commands/products.ts +2 -0
  333. package/src/modules/catalog/commands/variants.ts +42 -3
  334. package/src/modules/catalog/components/products/ProductsDataTable.tsx +8 -0
  335. package/src/modules/catalog/components/products/variantForm.ts +17 -1
  336. package/src/modules/catalog/i18n/de.json +12 -0
  337. package/src/modules/catalog/i18n/en.json +12 -0
  338. package/src/modules/catalog/i18n/es.json +12 -0
  339. package/src/modules/catalog/i18n/pl.json +12 -0
  340. package/src/modules/catalog/lib/bulkDelete.ts +106 -0
  341. package/src/modules/catalog/widgets/injection/product-bulk-delete/widget.ts +242 -0
  342. package/src/modules/catalog/widgets/injection-table.ts +8 -0
  343. package/src/modules/catalog/workers/catalog-product-bulk-delete.ts +48 -0
  344. package/src/modules/customers/backend/customers/deals/create/page.tsx +2 -0
  345. package/src/modules/data_sync/AGENTS.md +11 -3
  346. package/src/modules/data_sync/api/options.ts +58 -0
  347. package/src/modules/data_sync/api/run.ts +34 -36
  348. package/src/modules/data_sync/api/runs/[id]/cancel.ts +18 -5
  349. package/src/modules/data_sync/api/runs/[id]/retry.ts +14 -31
  350. package/src/modules/data_sync/api/schedules/[id]/route.ts +130 -0
  351. package/src/modules/data_sync/api/schedules/route.ts +77 -0
  352. package/src/modules/data_sync/api/schedules/serialize.ts +31 -0
  353. package/src/modules/data_sync/backend/data-sync/page.meta.ts +2 -2
  354. package/src/modules/data_sync/backend/data-sync/page.tsx +756 -2
  355. package/src/modules/data_sync/backend/data-sync/runs/[id]/page.tsx +229 -65
  356. package/src/modules/data_sync/components/IntegrationScheduleTab.tsx +512 -0
  357. package/src/modules/data_sync/data/validators.ts +35 -0
  358. package/src/modules/data_sync/di.ts +6 -0
  359. package/src/modules/data_sync/i18n/de.json +72 -0
  360. package/src/modules/data_sync/i18n/en.json +72 -0
  361. package/src/modules/data_sync/i18n/es.json +72 -0
  362. package/src/modules/data_sync/i18n/pl.json +72 -0
  363. package/src/modules/data_sync/lib/adapter.ts +4 -1
  364. package/src/modules/data_sync/lib/id-mapping.ts +32 -2
  365. package/src/modules/data_sync/lib/start-run.ts +90 -0
  366. package/src/modules/data_sync/lib/sync-engine.ts +111 -4
  367. package/src/modules/data_sync/lib/sync-run-service.ts +5 -1
  368. package/src/modules/data_sync/lib/sync-schedule-service.ts +207 -0
  369. package/src/modules/data_sync/workers/sync-export.ts +33 -2
  370. package/src/modules/data_sync/workers/sync-import.ts +33 -2
  371. package/src/modules/data_sync/workers/sync-scheduled.ts +7 -0
  372. package/src/modules/directory/api/get/tenants/lookup.ts +1 -0
  373. package/src/modules/directory/backend/directory/organizations/create/page.tsx +2 -1
  374. package/src/modules/directory/i18n/de.json +1 -0
  375. package/src/modules/directory/i18n/en.json +1 -0
  376. package/src/modules/directory/i18n/es.json +1 -0
  377. package/src/modules/directory/i18n/pl.json +1 -0
  378. package/src/modules/entities/api/definitions.ts +12 -2
  379. package/src/modules/entities/lib/field-definitions.ts +2 -0
  380. package/src/modules/integrations/AGENTS.md +47 -3
  381. package/src/modules/integrations/api/[id]/route.ts +47 -21
  382. package/src/modules/integrations/api/logs/route.ts +53 -27
  383. package/src/modules/integrations/api/route.ts +34 -4
  384. package/src/modules/integrations/api/umes-read.ts +177 -0
  385. package/src/modules/integrations/backend/integrations/[id]/page.tsx +1036 -214
  386. package/src/modules/integrations/backend/integrations/bundle/[id]/page.tsx +43 -9
  387. package/src/modules/integrations/backend/integrations/detail-page-widgets.ts +74 -0
  388. package/src/modules/integrations/backend/integrations/page.meta.ts +2 -2
  389. package/src/modules/integrations/backend/integrations/page.tsx +65 -54
  390. package/src/modules/integrations/i18n/de.json +15 -0
  391. package/src/modules/integrations/i18n/en.json +15 -0
  392. package/src/modules/integrations/i18n/es.json +15 -0
  393. package/src/modules/integrations/i18n/pl.json +15 -0
  394. package/src/modules/integrations/lib/state-service.ts +25 -1
  395. package/src/modules/integrations/setup.ts +2 -2
  396. package/src/modules/messages/api/[id]/route.ts +25 -22
  397. package/src/modules/payment_gateways/acl.ts +8 -0
  398. package/src/modules/payment_gateways/api/cancel/route.ts +56 -0
  399. package/src/modules/payment_gateways/api/capture/route.ts +56 -0
  400. package/src/modules/payment_gateways/api/interceptors.ts +22 -0
  401. package/src/modules/payment_gateways/api/openapi.ts +1 -0
  402. package/src/modules/payment_gateways/api/refund/route.ts +57 -0
  403. package/src/modules/payment_gateways/api/sessions/route.ts +76 -0
  404. package/src/modules/payment_gateways/api/status/route.ts +69 -0
  405. package/src/modules/payment_gateways/api/transactions/[id]/route.ts +123 -0
  406. package/src/modules/payment_gateways/api/transactions/route.ts +120 -0
  407. package/src/modules/payment_gateways/api/webhook/[provider]/route.ts +161 -0
  408. package/src/modules/payment_gateways/backend/payment-gateways/page.meta.ts +19 -0
  409. package/src/modules/payment_gateways/backend/payment-gateways/page.tsx +660 -0
  410. package/src/modules/payment_gateways/data/enrichers.ts +8 -0
  411. package/src/modules/payment_gateways/data/entities.ts +106 -0
  412. package/src/modules/payment_gateways/data/validators.ts +67 -0
  413. package/src/modules/payment_gateways/di.ts +26 -0
  414. package/src/modules/payment_gateways/events.ts +17 -0
  415. package/src/modules/payment_gateways/i18n/de.json +77 -0
  416. package/src/modules/payment_gateways/i18n/en.json +77 -0
  417. package/src/modules/payment_gateways/i18n/en.ts +4 -0
  418. package/src/modules/payment_gateways/i18n/es.json +77 -0
  419. package/src/modules/payment_gateways/i18n/pl.json +77 -0
  420. package/src/modules/payment_gateways/i18n/pl.ts +4 -0
  421. package/src/modules/payment_gateways/index.ts +5 -0
  422. package/src/modules/payment_gateways/lib/gateway-service.ts +486 -0
  423. package/src/modules/payment_gateways/lib/queue.ts +19 -0
  424. package/src/modules/payment_gateways/lib/status-machine.ts +28 -0
  425. package/src/modules/payment_gateways/lib/webhook-processor.ts +133 -0
  426. package/src/modules/payment_gateways/lib/webhook-utils.ts +52 -0
  427. package/src/modules/payment_gateways/migrations/.snapshot-open-mercato.json +373 -0
  428. package/src/modules/payment_gateways/migrations/Migration20260305122155.ts +20 -0
  429. package/src/modules/payment_gateways/setup.ts +11 -0
  430. package/src/modules/payment_gateways/widgets/injection-table.ts +9 -0
  431. package/src/modules/payment_gateways/workers/status-poller.ts +58 -0
  432. package/src/modules/payment_gateways/workers/webhook-processor.ts +30 -0
  433. package/src/modules/progress/api/active/route.ts +4 -1
  434. package/src/modules/progress/api/jobs/[id]/route.ts +1 -1
  435. package/src/modules/progress/api/jobs/route.ts +1 -1
  436. package/src/modules/progress/lib/events.ts +6 -0
  437. package/src/modules/progress/lib/progressService.ts +1 -0
  438. package/src/modules/progress/lib/progressServiceImpl.ts +47 -1
  439. package/src/modules/query_index/lib/document.ts +52 -1
  440. package/src/modules/query_index/lib/engine.ts +104 -4
  441. package/src/modules/query_index/lib/indexer.ts +2 -0
  442. package/src/modules/sales/api/adjustment-kinds/route.ts +3 -9
  443. package/src/modules/sales/api/channels/route.ts +3 -10
  444. package/src/modules/sales/api/delivery-windows/route.ts +3 -10
  445. package/src/modules/sales/api/payment-methods/route.ts +3 -11
  446. package/src/modules/sales/api/payments/route.ts +2 -2
  447. package/src/modules/sales/api/price-kinds/route.ts +3 -5
  448. package/src/modules/sales/api/shipping-methods/route.ts +3 -11
  449. package/src/modules/sales/api/tags/route.ts +3 -9
  450. package/src/modules/sales/api/tax-rates/route.ts +3 -13
  451. package/src/modules/sales/api/utils.ts +9 -0
  452. package/src/modules/sales/backend/sales/documents/[id]/page.tsx +8 -16
  453. package/src/modules/sales/commands/payments.ts +19 -3
  454. package/src/modules/sales/components/documents/AdjustmentsSection.tsx +1 -5
  455. package/src/modules/sales/components/documents/ItemsSection.tsx +1 -5
  456. package/src/modules/sales/components/documents/PaymentsSection.tsx +10 -15
  457. package/src/modules/sales/components/documents/SalesDocumentForm.tsx +23 -7
  458. package/src/modules/sales/components/documents/ShipmentsSection.tsx +2 -6
  459. package/src/modules/sales/data/enrichers.ts +120 -0
  460. package/src/modules/sales/data/validators.ts +11 -9
  461. package/src/modules/sales/lib/makeSalesLineRoute.ts +3 -0
  462. package/src/modules/sales/lib/makeStatusDictionaryRoute.ts +3 -9
  463. package/src/modules/sales/widgets/injection/payment-gateway-config-field/widget.ts +28 -0
  464. package/src/modules/sales/widgets/injection/payment-gateway-status-column/widget.ts +22 -0
  465. package/src/modules/sales/widgets/injection-table.ts +12 -0
  466. package/src/modules/shipping_carriers/acl.ts +6 -0
  467. package/src/modules/shipping_carriers/api/cancel/route.ts +53 -0
  468. package/src/modules/shipping_carriers/api/interceptors.ts +19 -0
  469. package/src/modules/shipping_carriers/api/openapi.ts +1 -0
  470. package/src/modules/shipping_carriers/api/rates/route.ts +53 -0
  471. package/src/modules/shipping_carriers/api/shipments/route.ts +59 -0
  472. package/src/modules/shipping_carriers/api/tracking/route.ts +56 -0
  473. package/src/modules/shipping_carriers/api/webhook/[provider]/route.ts +134 -0
  474. package/src/modules/shipping_carriers/data/enrichers.ts +89 -0
  475. package/src/modules/shipping_carriers/data/entities.ts +60 -0
  476. package/src/modules/shipping_carriers/data/validators.ts +48 -0
  477. package/src/modules/shipping_carriers/di.ts +20 -0
  478. package/src/modules/shipping_carriers/events.ts +16 -0
  479. package/src/modules/shipping_carriers/i18n/de.json +7 -0
  480. package/src/modules/shipping_carriers/i18n/en.json +7 -0
  481. package/src/modules/shipping_carriers/i18n/en.ts +7 -0
  482. package/src/modules/shipping_carriers/i18n/es.json +7 -0
  483. package/src/modules/shipping_carriers/i18n/pl.json +7 -0
  484. package/src/modules/shipping_carriers/i18n/pl.ts +7 -0
  485. package/src/modules/shipping_carriers/index.ts +5 -0
  486. package/src/modules/shipping_carriers/lib/adapter-registry.ts +33 -0
  487. package/src/modules/shipping_carriers/lib/adapter.ts +93 -0
  488. package/src/modules/shipping_carriers/lib/queue.ts +19 -0
  489. package/src/modules/shipping_carriers/lib/shipping-service.ts +204 -0
  490. package/src/modules/shipping_carriers/lib/status-sync.ts +38 -0
  491. package/src/modules/shipping_carriers/migrations/Migration20260305170000.ts +14 -0
  492. package/src/modules/shipping_carriers/setup.ts +11 -0
  493. package/src/modules/shipping_carriers/widgets/injection/create-shipment-button/widget.ts +24 -0
  494. package/src/modules/shipping_carriers/widgets/injection/tracking-column/widget.ts +22 -0
  495. package/src/modules/shipping_carriers/widgets/injection/tracking-status-badge/widget.tsx +44 -0
  496. package/src/modules/shipping_carriers/widgets/injection-table.ts +22 -0
  497. package/src/modules/shipping_carriers/workers/status-poller.ts +33 -0
  498. package/src/modules/shipping_carriers/workers/webhook-processor.ts +79 -0
  499. package/src/modules/translations/api/get/locales.ts +1 -0
  500. package/src/modules/translations/api/put/locales.ts +1 -0
  501. package/src/modules/workflows/api/definitions/[id]/route.ts +3 -2
  502. package/src/modules/workflows/api/definitions/route.ts +37 -8
  503. package/src/modules/workflows/api/definitions/serialize.ts +23 -0
  504. package/src/modules/workflows/backend/definitions/page.tsx +46 -3
package/AGENTS.md CHANGED
@@ -141,6 +141,7 @@ export default setup
141
141
  2. Never directly import another module's seed functions
142
142
  3. Access entity IDs with optional chaining: `(E as any).catalog?.catalog_product`
143
143
  4. Use `getEntityIds()` at runtime (not import-time) for cross-module lookups
144
+ 5. Integration provider packages that need bootstrap credentials or mappings SHOULD preconfigure themselves from env inside the provider module via `setup.ts` and provider-local helpers/CLI. Do not add provider-specific env bootstrapping to core setup orchestration.
144
145
 
145
146
  ### Testing with Disabled Modules
146
147
 
@@ -0,0 +1,251 @@
1
+ # Core Package — Standalone Developer Guide
2
+
3
+ `@open-mercato/core` contains all built-in business modules. This guide covers module development patterns for standalone apps that build on top of these modules.
4
+
5
+ ## Auto-Discovery Paths
6
+
7
+ Place files in your module directory (`src/modules/<module>/`) — the framework discovers them automatically:
8
+
9
+ | Path Pattern | Becomes |
10
+ |---|---|
11
+ | `frontend/<path>.tsx` | `/<path>` (public page) |
12
+ | `backend/<path>.tsx` | `/backend/<path>` (admin page) |
13
+ | `backend/page.tsx` | `/backend/<module>` (module root page) |
14
+ | `api/<method>/<path>.ts` | `/api/<path>` dispatched by HTTP method |
15
+ | `subscribers/*.ts` | Event subscriber (export `metadata` + default handler) |
16
+ | `workers/*.ts` | Background worker (export `metadata` + default handler) |
17
+
18
+ Run `yarn generate` after adding any auto-discovered file.
19
+
20
+ ## Module Files Reference
21
+
22
+ | File | Export | Purpose |
23
+ |------|--------|---------|
24
+ | `index.ts` | `metadata` | Module metadata |
25
+ | `di.ts` | `register(container)` | DI registrations (Awilix) |
26
+ | `acl.ts` | `features` | Permission features: `['mod.view', 'mod.create', ...]` |
27
+ | `setup.ts` | `setup: ModuleSetupConfig` | Tenant init, role features, seed data |
28
+ | `ce.ts` | `entities` | Custom entities / custom field sets |
29
+ | `events.ts` | `eventsConfig` | Typed event declarations |
30
+ | `search.ts` | `searchConfig` | Search indexing config |
31
+ | `translations.ts` | `translatableFields` | Translatable fields per entity |
32
+ | `notifications.ts` | `notificationTypes` | Notification type definitions |
33
+ | `notifications.client.ts` | — | Client-side notification renderers |
34
+ | `notifications.handlers.ts` | `notificationHandlers` | Reactive notification side-effects |
35
+ | `data/entities.ts` | — | MikroORM entity classes |
36
+ | `data/validators.ts` | — | Zod validation schemas |
37
+ | `data/extensions.ts` | `extensions` | Entity extensions (cross-module links) |
38
+ | `data/enrichers.ts` | `enrichers` | Response enrichers |
39
+ | `api/interceptors.ts` | `interceptors` | API route interception hooks |
40
+ | `widgets/injection/` | — | Injected UI widgets |
41
+ | `widgets/injection-table.ts` | — | Widget-to-slot mappings |
42
+ | `widgets/components.ts` | `componentOverrides` | Component replacement/wrapper definitions |
43
+
44
+ ## API Routes
45
+
46
+ Every API route file MUST export an `openApi` object:
47
+
48
+ ```typescript
49
+ import { createCrudOpenApiFactory } from '@open-mercato/shared/lib/openapi/crud'
50
+ const buildOpenApi = createCrudOpenApiFactory({ defaultTag: 'MyModule' })
51
+
52
+ export const openApi = buildOpenApi({
53
+ resourceName: 'Item',
54
+ querySchema: listQuerySchema,
55
+ listResponseSchema: createPagedListResponseSchema(itemSchema),
56
+ create: { schema: createSchema, description: 'Create item' },
57
+ update: { schema: updateSchema, responseSchema: okSchema },
58
+ del: { schema: deleteSchema, responseSchema: okSchema },
59
+ })
60
+ ```
61
+
62
+ ### CRUD Routes with makeCrudRoute
63
+
64
+ Always set `indexer: { entityType }` for query index coverage:
65
+
66
+ ```typescript
67
+ makeCrudRoute({
68
+ entity: MyEntity,
69
+ indexer: { entityType: 'my_module:my_entity' },
70
+ enrichers: { entityId: 'my_module.my_entity' }, // opt-in to enrichers
71
+ // ...
72
+ })
73
+ ```
74
+
75
+ ### Custom Write Routes
76
+
77
+ For non-CRUD write routes (`POST`/`PUT`/`PATCH`/`DELETE`), MUST wire mutation guards:
78
+ - Call `validateCrudMutationGuard` before mutation
79
+ - Call `runCrudMutationGuardAfterSuccess` after successful mutation
80
+
81
+ ## Module Setup (`setup.ts`)
82
+
83
+ Required for tenant initialization:
84
+
85
+ ```typescript
86
+ import type { ModuleSetupConfig } from '@open-mercato/shared/modules/setup'
87
+
88
+ export const setup: ModuleSetupConfig = {
89
+ defaultRoleFeatures: {
90
+ superadmin: ['my_module.admin_only'],
91
+ admin: ['my_module.*'],
92
+ employee: ['my_module.view'],
93
+ },
94
+ async onTenantCreated({ em, tenantId, organizationId }) { /* settings, sequences */ },
95
+ async seedDefaults({ em, tenantId, container }) { /* dictionaries, statuses */ },
96
+ async seedExamples({ em, tenantId, container }) { /* demo data */ },
97
+ }
98
+ ```
99
+
100
+ ## Events
101
+
102
+ Declare events in the emitting module's `events.ts`:
103
+
104
+ ```typescript
105
+ import { createModuleEvents } from '@open-mercato/shared/modules/events'
106
+ const events = [
107
+ { id: 'my_mod.item.created', label: 'Item Created', entity: 'item', category: 'crud' },
108
+ { id: 'my_mod.item.updated', label: 'Item Updated', entity: 'item', category: 'crud' },
109
+ { id: 'my_mod.item.deleted', label: 'Item Deleted', entity: 'item', category: 'crud' },
110
+ ] as const
111
+ export const eventsConfig = createModuleEvents({ moduleId: 'my_mod', events })
112
+ export const emitMyModEvent = eventsConfig.emit
113
+ ```
114
+
115
+ MUST use `as const` for type safety. Run `yarn generate` after adding.
116
+
117
+ ### Subscribers
118
+
119
+ ```typescript
120
+ // subscribers/item-created-notify.ts
121
+ export const metadata = { event: 'my_mod.item.created', persistent: true, id: 'item-created-notify' }
122
+ export default async function handler(payload, ctx) { /* one side effect per subscriber */ }
123
+ ```
124
+
125
+ ## Widget Injection
126
+
127
+ The preferred way to extend other modules' UI without direct coupling.
128
+
129
+ ### Structure
130
+ - Widgets: `widgets/injection/<WidgetName>/widget.tsx` (or `widget.ts` for headless)
131
+ - Mapping: `widgets/injection-table.ts`
132
+
133
+ ### Spot IDs
134
+ - `crud-form:<entityId>` — inject into forms
135
+ - `crud-form:<entityId>:fields` — inject form fields
136
+ - `data-table:<tableId>:columns|row-actions|bulk-actions|filters` — inject into tables
137
+ - `menu:sidebar:main|settings|profile` — sidebar menu items
138
+ - `menu:topbar:profile-dropdown|actions` — topbar items
139
+
140
+ ### Menu Injection (Headless)
141
+ ```typescript
142
+ // widgets/injection/MyMenuItem/widget.ts
143
+ export const menuItems = [
144
+ { id: 'my-mod-dashboard', labelKey: 'my_mod.menu.dashboard', icon: 'lucide:layout-dashboard',
145
+ href: '/backend/my-module', placement: { position: InjectionPosition.After, relativeTo: 'customers' } }
146
+ ]
147
+ ```
148
+
149
+ Map in `injection-table.ts`:
150
+ ```typescript
151
+ export default [{ widgetId: 'MyMenuItem', spots: ['menu:sidebar:main'] }]
152
+ ```
153
+
154
+ ## Response Enrichers
155
+
156
+ Add computed fields to another module's CRUD responses:
157
+
158
+ ```typescript
159
+ // data/enrichers.ts
160
+ export const enrichers: ResponseEnricher[] = [{
161
+ id: 'my_mod.customer-stats',
162
+ targetEntity: 'customers.person',
163
+ features: ['my_mod.view'],
164
+ priority: 10,
165
+ timeout: 2000,
166
+ fallback: { _my_mod: { count: 0 } },
167
+ async enrichMany(records, ctx) {
168
+ return records.map(r => ({ ...r, _my_mod: { count: 42 } }))
169
+ },
170
+ }]
171
+ ```
172
+
173
+ MUST implement `enrichMany()` for batch endpoints. MUST namespace with `_moduleName` prefix.
174
+
175
+ ## API Interceptors
176
+
177
+ Hook into any route's before/after lifecycle:
178
+
179
+ ```typescript
180
+ // api/interceptors.ts
181
+ export const interceptors: ApiInterceptor[] = [{
182
+ id: 'my_mod.narrow-customers',
183
+ targetRoute: '/api/customers/people',
184
+ methods: ['GET'],
185
+ async before(ctx) { /* rewrite query.ids to narrow results */ },
186
+ async after(ctx, response) { /* transform response */ },
187
+ }]
188
+ ```
189
+
190
+ ## Access Control (RBAC)
191
+
192
+ Declare features in `acl.ts`, guard with metadata:
193
+
194
+ ```typescript
195
+ // acl.ts
196
+ export const features = ['my_module.view', 'my_module.create', 'my_module.edit', 'my_module.delete']
197
+ ```
198
+
199
+ Always add matching `defaultRoleFeatures` in `setup.ts`.
200
+
201
+ Use declarative guards in page metadata: `requireAuth`, `requireRoles`, `requireFeatures`.
202
+
203
+ ## Custom Fields & Entities
204
+
205
+ Declare in `ce.ts` using DSL helpers:
206
+
207
+ ```typescript
208
+ import { defineFields, cf } from '@open-mercato/shared/modules/dsl'
209
+ export const entities = [{
210
+ entityId: 'my_module:my_entity',
211
+ fields: defineFields({ fields: [cf.text('notes'), cf.number('priority')] }),
212
+ }]
213
+ ```
214
+
215
+ ## Entity Extensions (Cross-Module Links)
216
+
217
+ Extend another module's data without mutating their entities:
218
+
219
+ ```typescript
220
+ // data/extensions.ts
221
+ import { defineLink, entityId, linkable } from '@open-mercato/shared/modules/dsl'
222
+ export const extensions = [
223
+ defineLink({ source: entityId('my_module:my_entity'), target: linkable('customers:person') })
224
+ ]
225
+ ```
226
+
227
+ ## Component Replacement
228
+
229
+ Override or wrap existing UI components:
230
+
231
+ ```typescript
232
+ // widgets/components.ts
233
+ export const componentOverrides = [{
234
+ handle: 'page:customers:detail',
235
+ mode: 'wrapper', // or 'replace', 'props'
236
+ component: MyCustomerDetailWrapper,
237
+ }]
238
+ ```
239
+
240
+ Prefer `wrapper`/`props` modes over full `replace`.
241
+
242
+ ## Command Pattern (Write Operations)
243
+
244
+ Implement writes via commands for undo/redo support:
245
+
246
+ ```typescript
247
+ import { registerCommand } from '@open-mercato/shared/lib/commands'
248
+ // Reference: @open-mercato/core customers/commands/people.ts
249
+ ```
250
+
251
+ Include `indexer: { entityType, cacheAliases }` in `emitCrudSideEffects` for query index refresh.
@@ -0,0 +1,37 @@
1
+ const id = "id";
2
+ const order_id = "order_id";
3
+ const provider_key = "provider_key";
4
+ const carrier_shipment_id = "carrier_shipment_id";
5
+ const tracking_number = "tracking_number";
6
+ const unified_status = "unified_status";
7
+ const carrier_status = "carrier_status";
8
+ const label_url = "label_url";
9
+ const label_data = "label_data";
10
+ const tracking_events = "tracking_events";
11
+ const organization_id = "organization_id";
12
+ const tenant_id = "tenant_id";
13
+ const last_webhook_at = "last_webhook_at";
14
+ const last_polled_at = "last_polled_at";
15
+ const created_at = "created_at";
16
+ const updated_at = "updated_at";
17
+ const deleted_at = "deleted_at";
18
+ export {
19
+ carrier_shipment_id,
20
+ carrier_status,
21
+ created_at,
22
+ deleted_at,
23
+ id,
24
+ label_data,
25
+ label_url,
26
+ last_polled_at,
27
+ last_webhook_at,
28
+ order_id,
29
+ organization_id,
30
+ provider_key,
31
+ tenant_id,
32
+ tracking_events,
33
+ tracking_number,
34
+ unified_status,
35
+ updated_at
36
+ };
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/carrier_shipment/index.ts"],
4
+ "sourcesContent": ["export const id = 'id'\nexport const order_id = 'order_id'\nexport const provider_key = 'provider_key'\nexport const carrier_shipment_id = 'carrier_shipment_id'\nexport const tracking_number = 'tracking_number'\nexport const unified_status = 'unified_status'\nexport const carrier_status = 'carrier_status'\nexport const label_url = 'label_url'\nexport const label_data = 'label_data'\nexport const tracking_events = 'tracking_events'\nexport const organization_id = 'organization_id'\nexport const tenant_id = 'tenant_id'\nexport const last_webhook_at = 'last_webhook_at'\nexport const last_polled_at = 'last_polled_at'\nexport const created_at = 'created_at'\nexport const updated_at = 'updated_at'\nexport const deleted_at = 'deleted_at'\n"],
5
+ "mappings": "AAAO,MAAM,KAAK;AACX,MAAM,WAAW;AACjB,MAAM,eAAe;AACrB,MAAM,sBAAsB;AAC5B,MAAM,kBAAkB;AACxB,MAAM,iBAAiB;AACvB,MAAM,iBAAiB;AACvB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,kBAAkB;AACxB,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,kBAAkB;AACxB,MAAM,iBAAiB;AACvB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;",
6
+ "names": []
7
+ }
@@ -0,0 +1,47 @@
1
+ const id = "id";
2
+ const payment_id = "payment_id";
3
+ const provider_key = "provider_key";
4
+ const provider_session_id = "provider_session_id";
5
+ const gateway_payment_id = "gateway_payment_id";
6
+ const gateway_refund_id = "gateway_refund_id";
7
+ const unified_status = "unified_status";
8
+ const gateway_status = "gateway_status";
9
+ const redirect_url = "redirect_url";
10
+ const client_secret = "client_secret";
11
+ const amount = "amount";
12
+ const currency_code = "currency_code";
13
+ const gateway_metadata = "gateway_metadata";
14
+ const webhook_log = "webhook_log";
15
+ const last_webhook_at = "last_webhook_at";
16
+ const last_polled_at = "last_polled_at";
17
+ const expires_at = "expires_at";
18
+ const organization_id = "organization_id";
19
+ const tenant_id = "tenant_id";
20
+ const created_at = "created_at";
21
+ const updated_at = "updated_at";
22
+ const deleted_at = "deleted_at";
23
+ export {
24
+ amount,
25
+ client_secret,
26
+ created_at,
27
+ currency_code,
28
+ deleted_at,
29
+ expires_at,
30
+ gateway_metadata,
31
+ gateway_payment_id,
32
+ gateway_refund_id,
33
+ gateway_status,
34
+ id,
35
+ last_polled_at,
36
+ last_webhook_at,
37
+ organization_id,
38
+ payment_id,
39
+ provider_key,
40
+ provider_session_id,
41
+ redirect_url,
42
+ tenant_id,
43
+ unified_status,
44
+ updated_at,
45
+ webhook_log
46
+ };
47
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/gateway_transaction/index.ts"],
4
+ "sourcesContent": ["export const id = 'id'\nexport const payment_id = 'payment_id'\nexport const provider_key = 'provider_key'\nexport const provider_session_id = 'provider_session_id'\nexport const gateway_payment_id = 'gateway_payment_id'\nexport const gateway_refund_id = 'gateway_refund_id'\nexport const unified_status = 'unified_status'\nexport const gateway_status = 'gateway_status'\nexport const redirect_url = 'redirect_url'\nexport const client_secret = 'client_secret'\nexport const amount = 'amount'\nexport const currency_code = 'currency_code'\nexport const gateway_metadata = 'gateway_metadata'\nexport const webhook_log = 'webhook_log'\nexport const last_webhook_at = 'last_webhook_at'\nexport const last_polled_at = 'last_polled_at'\nexport const expires_at = 'expires_at'\nexport const organization_id = 'organization_id'\nexport const tenant_id = 'tenant_id'\nexport const created_at = 'created_at'\nexport const updated_at = 'updated_at'\nexport const deleted_at = 'deleted_at'\n"],
5
+ "mappings": "AAAO,MAAM,KAAK;AACX,MAAM,aAAa;AACnB,MAAM,eAAe;AACrB,MAAM,sBAAsB;AAC5B,MAAM,qBAAqB;AAC3B,MAAM,oBAAoB;AAC1B,MAAM,iBAAiB;AACvB,MAAM,iBAAiB;AACvB,MAAM,eAAe;AACrB,MAAM,gBAAgB;AACtB,MAAM,SAAS;AACf,MAAM,gBAAgB;AACtB,MAAM,mBAAmB;AACzB,MAAM,cAAc;AACpB,MAAM,kBAAkB;AACxB,MAAM,iBAAiB;AACvB,MAAM,aAAa;AACnB,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;",
6
+ "names": []
7
+ }
@@ -0,0 +1,17 @@
1
+ const id = "id";
2
+ const provider_key = "provider_key";
3
+ const idempotency_key = "idempotency_key";
4
+ const event_type = "event_type";
5
+ const organization_id = "organization_id";
6
+ const tenant_id = "tenant_id";
7
+ const processed_at = "processed_at";
8
+ export {
9
+ event_type,
10
+ id,
11
+ idempotency_key,
12
+ organization_id,
13
+ processed_at,
14
+ provider_key,
15
+ tenant_id
16
+ };
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/webhook_processed_event/index.ts"],
4
+ "sourcesContent": ["export const id = 'id'\nexport const provider_key = 'provider_key'\nexport const idempotency_key = 'idempotency_key'\nexport const event_type = 'event_type'\nexport const organization_id = 'organization_id'\nexport const tenant_id = 'tenant_id'\nexport const processed_at = 'processed_at'\n"],
5
+ "mappings": "AAAO,MAAM,KAAK;AACX,MAAM,eAAe;AACrB,MAAM,kBAAkB;AACxB,MAAM,aAAa;AACnB,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,eAAe;",
6
+ "names": []
7
+ }
@@ -27,7 +27,9 @@ const M = {
27
27
  "data_sync": "data_sync",
28
28
  "messages": "messages",
29
29
  "translations": "translations",
30
- "inbox_ops": "inbox_ops"
30
+ "inbox_ops": "inbox_ops",
31
+ "payment_gateways": "payment_gateways",
32
+ "shipping_carriers": "shipping_carriers"
31
33
  };
32
34
  const E = {
33
35
  "dashboards": {
@@ -227,6 +229,13 @@ const E = {
227
229
  "inbox_proposal": "inbox_ops:inbox_proposal",
228
230
  "inbox_proposal_action": "inbox_ops:inbox_proposal_action",
229
231
  "inbox_discrepancy": "inbox_ops:inbox_discrepancy"
232
+ },
233
+ "payment_gateways": {
234
+ "gateway_transaction": "payment_gateways:gateway_transaction",
235
+ "webhook_processed_event": "payment_gateways:webhook_processed_event"
236
+ },
237
+ "shipping_carriers": {
238
+ "carrier_shipment": "shipping_carriers:carrier_shipment"
230
239
  }
231
240
  };
232
241
  export {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../generated/entities.ids.generated.ts"],
4
- "sourcesContent": ["// AUTO-GENERATED by mercato generate entity-ids\nexport const M = {\n \"dashboards\": \"dashboards\",\n \"auth\": \"auth\",\n \"directory\": \"directory\",\n \"customers\": \"customers\",\n \"perspectives\": \"perspectives\",\n \"entities\": \"entities\",\n \"configs\": \"configs\",\n \"query_index\": \"query_index\",\n \"audit_logs\": \"audit_logs\",\n \"attachments\": \"attachments\",\n \"catalog\": \"catalog\",\n \"sales\": \"sales\",\n \"api_keys\": \"api_keys\",\n \"dictionaries\": \"dictionaries\",\n \"api_docs\": \"api_docs\",\n \"business_rules\": \"business_rules\",\n \"feature_toggles\": \"feature_toggles\",\n \"workflows\": \"workflows\",\n \"currencies\": \"currencies\",\n \"planner\": \"planner\",\n \"resources\": \"resources\",\n \"staff\": \"staff\",\n \"notifications\": \"notifications\",\n \"progress\": \"progress\",\n \"integrations\": \"integrations\",\n \"data_sync\": \"data_sync\",\n \"messages\": \"messages\",\n \"translations\": \"translations\",\n \"inbox_ops\": \"inbox_ops\"\n} as const\nexport const E = {\n \"dashboards\": {\n \"dashboard_layout\": \"dashboards:dashboard_layout\",\n \"dashboard_role_widgets\": \"dashboards:dashboard_role_widgets\",\n \"dashboard_user_widgets\": \"dashboards:dashboard_user_widgets\"\n },\n \"auth\": {\n \"user\": \"auth:user\",\n \"role\": \"auth:role\",\n \"user_sidebar_preference\": \"auth:user_sidebar_preference\",\n \"role_sidebar_preference\": \"auth:role_sidebar_preference\",\n \"user_role\": \"auth:user_role\",\n \"session\": \"auth:session\",\n \"password_reset\": \"auth:password_reset\",\n \"role_acl\": \"auth:role_acl\",\n \"user_acl\": \"auth:user_acl\"\n },\n \"directory\": {\n \"tenant\": \"directory:tenant\",\n \"organization\": \"directory:organization\"\n },\n \"customers\": {\n \"customer_entity\": \"customers:customer_entity\",\n \"customer_person_profile\": \"customers:customer_person_profile\",\n \"customer_company_profile\": \"customers:customer_company_profile\",\n \"customer_deal\": \"customers:customer_deal\",\n \"customer_deal_person_link\": \"customers:customer_deal_person_link\",\n \"customer_deal_company_link\": \"customers:customer_deal_company_link\",\n \"customer_activity\": \"customers:customer_activity\",\n \"customer_comment\": \"customers:customer_comment\",\n \"customer_address\": \"customers:customer_address\",\n \"customer_settings\": \"customers:customer_settings\",\n \"customer_tag\": \"customers:customer_tag\",\n \"customer_tag_assignment\": \"customers:customer_tag_assignment\",\n \"customer_dictionary_entry\": \"customers:customer_dictionary_entry\",\n \"customer_pipeline\": \"customers:customer_pipeline\",\n \"customer_pipeline_stage\": \"customers:customer_pipeline_stage\",\n \"customer_todo_link\": \"customers:customer_todo_link\"\n },\n \"perspectives\": {\n \"perspective\": \"perspectives:perspective\",\n \"role_perspective\": \"perspectives:role_perspective\"\n },\n \"entities\": {\n \"custom_field_def\": \"entities:custom_field_def\",\n \"custom_field_entity_config\": \"entities:custom_field_entity_config\",\n \"custom_entity\": \"entities:custom_entity\",\n \"custom_entity_storage\": \"entities:custom_entity_storage\",\n \"custom_field_value\": \"entities:custom_field_value\",\n \"encryption_map\": \"entities:encryption_map\"\n },\n \"configs\": {\n \"module_config\": \"configs:module_config\",\n \"upgrade_action_run\": \"configs:upgrade_action_run\"\n },\n \"query_index\": {\n \"entity_index_row\": \"query_index:entity_index_row\",\n \"entity_index_job\": \"query_index:entity_index_job\",\n \"entity_index_coverage\": \"query_index:entity_index_coverage\",\n \"indexer_error_log\": \"query_index:indexer_error_log\",\n \"indexer_status_log\": \"query_index:indexer_status_log\",\n \"search_token\": \"query_index:search_token\"\n },\n \"audit_logs\": {\n \"action_log\": \"audit_logs:action_log\",\n \"access_log\": \"audit_logs:access_log\"\n },\n \"attachments\": {\n \"attachment_partition\": \"attachments:attachment_partition\",\n \"attachment\": \"attachments:attachment\"\n },\n \"catalog\": {\n \"catalog_option_schema_template\": \"catalog:catalog_option_schema_template\",\n \"catalog_product\": \"catalog:catalog_product\",\n \"catalog_product_unit_conversion\": \"catalog:catalog_product_unit_conversion\",\n \"catalog_product_category\": \"catalog:catalog_product_category\",\n \"catalog_product_category_assignment\": \"catalog:catalog_product_category_assignment\",\n \"catalog_product_tag\": \"catalog:catalog_product_tag\",\n \"catalog_product_tag_assignment\": \"catalog:catalog_product_tag_assignment\",\n \"catalog_offer\": \"catalog:catalog_offer\",\n \"catalog_product_variant\": \"catalog:catalog_product_variant\",\n \"catalog_product_variant_relation\": \"catalog:catalog_product_variant_relation\",\n \"catalog_price_kind\": \"catalog:catalog_price_kind\",\n \"catalog_product_price\": \"catalog:catalog_product_price\"\n },\n \"sales\": {\n \"sales_channel\": \"sales:sales_channel\",\n \"sales_shipping_method\": \"sales:sales_shipping_method\",\n \"sales_delivery_window\": \"sales:sales_delivery_window\",\n \"sales_payment_method\": \"sales:sales_payment_method\",\n \"sales_tax_rate\": \"sales:sales_tax_rate\",\n \"sales_order\": \"sales:sales_order\",\n \"sales_order_line\": \"sales:sales_order_line\",\n \"sales_order_adjustment\": \"sales:sales_order_adjustment\",\n \"sales_settings\": \"sales:sales_settings\",\n \"sales_document_sequence\": \"sales:sales_document_sequence\",\n \"sales_quote\": \"sales:sales_quote\",\n \"sales_quote_line\": \"sales:sales_quote_line\",\n \"sales_quote_adjustment\": \"sales:sales_quote_adjustment\",\n \"sales_shipment\": \"sales:sales_shipment\",\n \"sales_shipment_item\": \"sales:sales_shipment_item\",\n \"sales_invoice\": \"sales:sales_invoice\",\n \"sales_invoice_line\": \"sales:sales_invoice_line\",\n \"sales_credit_memo\": \"sales:sales_credit_memo\",\n \"sales_credit_memo_line\": \"sales:sales_credit_memo_line\",\n \"sales_payment\": \"sales:sales_payment\",\n \"sales_payment_allocation\": \"sales:sales_payment_allocation\",\n \"sales_note\": \"sales:sales_note\",\n \"sales_document_address\": \"sales:sales_document_address\",\n \"sales_document_tag\": \"sales:sales_document_tag\",\n \"sales_document_tag_assignment\": \"sales:sales_document_tag_assignment\"\n },\n \"api_keys\": {\n \"api_key\": \"api_keys:api_key\"\n },\n \"dictionaries\": {\n \"dictionary\": \"dictionaries:dictionary\",\n \"dictionary_entry\": \"dictionaries:dictionary_entry\"\n },\n \"business_rules\": {\n \"business_rule\": \"business_rules:business_rule\",\n \"rule_execution_log\": \"business_rules:rule_execution_log\",\n \"rule_set\": \"business_rules:rule_set\",\n \"rule_set_member\": \"business_rules:rule_set_member\"\n },\n \"feature_toggles\": {\n \"feature_toggle\": \"feature_toggles:feature_toggle\",\n \"feature_toggle_override\": \"feature_toggles:feature_toggle_override\"\n },\n \"workflows\": {\n \"workflow_definition\": \"workflows:workflow_definition\",\n \"workflow_instance\": \"workflows:workflow_instance\",\n \"step_instance\": \"workflows:step_instance\",\n \"user_task\": \"workflows:user_task\",\n \"workflow_event\": \"workflows:workflow_event\",\n \"workflow_event_trigger\": \"workflows:workflow_event_trigger\"\n },\n \"currencies\": {\n \"currency\": \"currencies:currency\",\n \"exchange_rate\": \"currencies:exchange_rate\",\n \"currency_fetch_config\": \"currencies:currency_fetch_config\"\n },\n \"planner\": {\n \"planner_availability_rule_set\": \"planner:planner_availability_rule_set\",\n \"planner_availability_rule\": \"planner:planner_availability_rule\"\n },\n \"resources\": {\n \"resources_resource_type\": \"resources:resources_resource_type\",\n \"resources_resource\": \"resources:resources_resource\",\n \"resources_resource_comment\": \"resources:resources_resource_comment\",\n \"resources_resource_activity\": \"resources:resources_resource_activity\",\n \"resources_resource_tag\": \"resources:resources_resource_tag\",\n \"resources_resource_tag_assignment\": \"resources:resources_resource_tag_assignment\"\n },\n \"staff\": {\n \"staff_team\": \"staff:staff_team\",\n \"staff_team_role\": \"staff:staff_team_role\",\n \"staff_team_member\": \"staff:staff_team_member\",\n \"staff_leave_request\": \"staff:staff_leave_request\",\n \"staff_team_member_comment\": \"staff:staff_team_member_comment\",\n \"staff_team_member_activity\": \"staff:staff_team_member_activity\",\n \"staff_team_member_job_history\": \"staff:staff_team_member_job_history\",\n \"staff_team_member_address\": \"staff:staff_team_member_address\"\n },\n \"notifications\": {\n \"notification\": \"notifications:notification\"\n },\n \"progress\": {\n \"progress_job\": \"progress:progress_job\"\n },\n \"integrations\": {\n \"sync_external_id_mapping\": \"integrations:sync_external_id_mapping\",\n \"integration_credentials\": \"integrations:integration_credentials\",\n \"integration_state\": \"integrations:integration_state\",\n \"integration_log\": \"integrations:integration_log\"\n },\n \"data_sync\": {\n \"sync_run\": \"data_sync:sync_run\",\n \"sync_cursor\": \"data_sync:sync_cursor\",\n \"sync_mapping\": \"data_sync:sync_mapping\",\n \"sync_schedule\": \"data_sync:sync_schedule\"\n },\n \"messages\": {\n \"message\": \"messages:message\",\n \"message_recipient\": \"messages:message_recipient\",\n \"message_object\": \"messages:message_object\",\n \"message_access_token\": \"messages:message_access_token\",\n \"message_confirmation\": \"messages:message_confirmation\"\n },\n \"translations\": {\n \"entity_translation\": \"translations:entity_translation\"\n },\n \"inbox_ops\": {\n \"inbox_settings\": \"inbox_ops:inbox_settings\",\n \"inbox_email\": \"inbox_ops:inbox_email\",\n \"inbox_proposal\": \"inbox_ops:inbox_proposal\",\n \"inbox_proposal_action\": \"inbox_ops:inbox_proposal_action\",\n \"inbox_discrepancy\": \"inbox_ops:inbox_discrepancy\"\n }\n} as const\nexport type KnownModuleId = keyof typeof M\nexport type KnownEntities = typeof E\n"],
5
- "mappings": "AACO,MAAM,IAAI;AAAA,EACf,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,eAAe;AAAA,EACf,cAAc;AAAA,EACd,eAAe;AAAA,EACf,WAAW;AAAA,EACX,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,aAAa;AAAA,EACb,cAAc;AAAA,EACd,WAAW;AAAA,EACX,aAAa;AAAA,EACb,SAAS;AAAA,EACT,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,aAAa;AACf;AACO,MAAM,IAAI;AAAA,EACf,cAAc;AAAA,IACZ,oBAAoB;AAAA,IACpB,0BAA0B;AAAA,IAC1B,0BAA0B;AAAA,EAC5B;AAAA,EACA,QAAQ;AAAA,IACN,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,2BAA2B;AAAA,IAC3B,2BAA2B;AAAA,IAC3B,aAAa;AAAA,IACb,WAAW;AAAA,IACX,kBAAkB;AAAA,IAClB,YAAY;AAAA,IACZ,YAAY;AAAA,EACd;AAAA,EACA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,IACtB,8BAA8B;AAAA,IAC9B,+BAA+B;AAAA,IAC/B,0BAA0B;AAAA,IAC1B,qCAAqC;AAAA,EACvC;AAAA,EACA,SAAS;AAAA,IACP,cAAc;AAAA,IACd,mBAAmB;AAAA,IACnB,qBAAqB;AAAA,IACrB,uBAAuB;AAAA,IACvB,6BAA6B;AAAA,IAC7B,8BAA8B;AAAA,IAC9B,iCAAiC;AAAA,IACjC,6BAA6B;AAAA,EAC/B;AAAA,EACA,iBAAiB;AAAA,IACf,gBAAgB;AAAA,EAClB;AAAA,EACA,YAAY;AAAA,IACV,gBAAgB;AAAA,EAClB;AAAA,EACA,gBAAgB;AAAA,IACd,4BAA4B;AAAA,IAC5B,2BAA2B;AAAA,IAC3B,qBAAqB;AAAA,IACrB,mBAAmB;AAAA,EACrB;AAAA,EACA,aAAa;AAAA,IACX,YAAY;AAAA,IACZ,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,EACnB;AAAA,EACA,YAAY;AAAA,IACV,WAAW;AAAA,IACX,qBAAqB;AAAA,IACrB,kBAAkB;AAAA,IAClB,wBAAwB;AAAA,IACxB,wBAAwB;AAAA,EAC1B;AAAA,EACA,gBAAgB;AAAA,IACd,sBAAsB;AAAA,EACxB;AAAA,EACA,aAAa;AAAA,IACX,kBAAkB;AAAA,IAClB,eAAe;AAAA,IACf,kBAAkB;AAAA,IAClB,yBAAyB;AAAA,IACzB,qBAAqB;AAAA,EACvB;AACF;",
4
+ "sourcesContent": ["// AUTO-GENERATED by mercato generate entity-ids\nexport const M = {\n \"dashboards\": \"dashboards\",\n \"auth\": \"auth\",\n \"directory\": \"directory\",\n \"customers\": \"customers\",\n \"perspectives\": \"perspectives\",\n \"entities\": \"entities\",\n \"configs\": \"configs\",\n \"query_index\": \"query_index\",\n \"audit_logs\": \"audit_logs\",\n \"attachments\": \"attachments\",\n \"catalog\": \"catalog\",\n \"sales\": \"sales\",\n \"api_keys\": \"api_keys\",\n \"dictionaries\": \"dictionaries\",\n \"api_docs\": \"api_docs\",\n \"business_rules\": \"business_rules\",\n \"feature_toggles\": \"feature_toggles\",\n \"workflows\": \"workflows\",\n \"currencies\": \"currencies\",\n \"planner\": \"planner\",\n \"resources\": \"resources\",\n \"staff\": \"staff\",\n \"notifications\": \"notifications\",\n \"progress\": \"progress\",\n \"integrations\": \"integrations\",\n \"data_sync\": \"data_sync\",\n \"messages\": \"messages\",\n \"translations\": \"translations\",\n \"inbox_ops\": \"inbox_ops\",\n \"payment_gateways\": \"payment_gateways\",\n \"shipping_carriers\": \"shipping_carriers\"\n} as const\nexport const E = {\n \"dashboards\": {\n \"dashboard_layout\": \"dashboards:dashboard_layout\",\n \"dashboard_role_widgets\": \"dashboards:dashboard_role_widgets\",\n \"dashboard_user_widgets\": \"dashboards:dashboard_user_widgets\"\n },\n \"auth\": {\n \"user\": \"auth:user\",\n \"role\": \"auth:role\",\n \"user_sidebar_preference\": \"auth:user_sidebar_preference\",\n \"role_sidebar_preference\": \"auth:role_sidebar_preference\",\n \"user_role\": \"auth:user_role\",\n \"session\": \"auth:session\",\n \"password_reset\": \"auth:password_reset\",\n \"role_acl\": \"auth:role_acl\",\n \"user_acl\": \"auth:user_acl\"\n },\n \"directory\": {\n \"tenant\": \"directory:tenant\",\n \"organization\": \"directory:organization\"\n },\n \"customers\": {\n \"customer_entity\": \"customers:customer_entity\",\n \"customer_person_profile\": \"customers:customer_person_profile\",\n \"customer_company_profile\": \"customers:customer_company_profile\",\n \"customer_deal\": \"customers:customer_deal\",\n \"customer_deal_person_link\": \"customers:customer_deal_person_link\",\n \"customer_deal_company_link\": \"customers:customer_deal_company_link\",\n \"customer_activity\": \"customers:customer_activity\",\n \"customer_comment\": \"customers:customer_comment\",\n \"customer_address\": \"customers:customer_address\",\n \"customer_settings\": \"customers:customer_settings\",\n \"customer_tag\": \"customers:customer_tag\",\n \"customer_tag_assignment\": \"customers:customer_tag_assignment\",\n \"customer_dictionary_entry\": \"customers:customer_dictionary_entry\",\n \"customer_pipeline\": \"customers:customer_pipeline\",\n \"customer_pipeline_stage\": \"customers:customer_pipeline_stage\",\n \"customer_todo_link\": \"customers:customer_todo_link\"\n },\n \"perspectives\": {\n \"perspective\": \"perspectives:perspective\",\n \"role_perspective\": \"perspectives:role_perspective\"\n },\n \"entities\": {\n \"custom_field_def\": \"entities:custom_field_def\",\n \"custom_field_entity_config\": \"entities:custom_field_entity_config\",\n \"custom_entity\": \"entities:custom_entity\",\n \"custom_entity_storage\": \"entities:custom_entity_storage\",\n \"custom_field_value\": \"entities:custom_field_value\",\n \"encryption_map\": \"entities:encryption_map\"\n },\n \"configs\": {\n \"module_config\": \"configs:module_config\",\n \"upgrade_action_run\": \"configs:upgrade_action_run\"\n },\n \"query_index\": {\n \"entity_index_row\": \"query_index:entity_index_row\",\n \"entity_index_job\": \"query_index:entity_index_job\",\n \"entity_index_coverage\": \"query_index:entity_index_coverage\",\n \"indexer_error_log\": \"query_index:indexer_error_log\",\n \"indexer_status_log\": \"query_index:indexer_status_log\",\n \"search_token\": \"query_index:search_token\"\n },\n \"audit_logs\": {\n \"action_log\": \"audit_logs:action_log\",\n \"access_log\": \"audit_logs:access_log\"\n },\n \"attachments\": {\n \"attachment_partition\": \"attachments:attachment_partition\",\n \"attachment\": \"attachments:attachment\"\n },\n \"catalog\": {\n \"catalog_option_schema_template\": \"catalog:catalog_option_schema_template\",\n \"catalog_product\": \"catalog:catalog_product\",\n \"catalog_product_unit_conversion\": \"catalog:catalog_product_unit_conversion\",\n \"catalog_product_category\": \"catalog:catalog_product_category\",\n \"catalog_product_category_assignment\": \"catalog:catalog_product_category_assignment\",\n \"catalog_product_tag\": \"catalog:catalog_product_tag\",\n \"catalog_product_tag_assignment\": \"catalog:catalog_product_tag_assignment\",\n \"catalog_offer\": \"catalog:catalog_offer\",\n \"catalog_product_variant\": \"catalog:catalog_product_variant\",\n \"catalog_product_variant_relation\": \"catalog:catalog_product_variant_relation\",\n \"catalog_price_kind\": \"catalog:catalog_price_kind\",\n \"catalog_product_price\": \"catalog:catalog_product_price\"\n },\n \"sales\": {\n \"sales_channel\": \"sales:sales_channel\",\n \"sales_shipping_method\": \"sales:sales_shipping_method\",\n \"sales_delivery_window\": \"sales:sales_delivery_window\",\n \"sales_payment_method\": \"sales:sales_payment_method\",\n \"sales_tax_rate\": \"sales:sales_tax_rate\",\n \"sales_order\": \"sales:sales_order\",\n \"sales_order_line\": \"sales:sales_order_line\",\n \"sales_order_adjustment\": \"sales:sales_order_adjustment\",\n \"sales_settings\": \"sales:sales_settings\",\n \"sales_document_sequence\": \"sales:sales_document_sequence\",\n \"sales_quote\": \"sales:sales_quote\",\n \"sales_quote_line\": \"sales:sales_quote_line\",\n \"sales_quote_adjustment\": \"sales:sales_quote_adjustment\",\n \"sales_shipment\": \"sales:sales_shipment\",\n \"sales_shipment_item\": \"sales:sales_shipment_item\",\n \"sales_invoice\": \"sales:sales_invoice\",\n \"sales_invoice_line\": \"sales:sales_invoice_line\",\n \"sales_credit_memo\": \"sales:sales_credit_memo\",\n \"sales_credit_memo_line\": \"sales:sales_credit_memo_line\",\n \"sales_payment\": \"sales:sales_payment\",\n \"sales_payment_allocation\": \"sales:sales_payment_allocation\",\n \"sales_note\": \"sales:sales_note\",\n \"sales_document_address\": \"sales:sales_document_address\",\n \"sales_document_tag\": \"sales:sales_document_tag\",\n \"sales_document_tag_assignment\": \"sales:sales_document_tag_assignment\"\n },\n \"api_keys\": {\n \"api_key\": \"api_keys:api_key\"\n },\n \"dictionaries\": {\n \"dictionary\": \"dictionaries:dictionary\",\n \"dictionary_entry\": \"dictionaries:dictionary_entry\"\n },\n \"business_rules\": {\n \"business_rule\": \"business_rules:business_rule\",\n \"rule_execution_log\": \"business_rules:rule_execution_log\",\n \"rule_set\": \"business_rules:rule_set\",\n \"rule_set_member\": \"business_rules:rule_set_member\"\n },\n \"feature_toggles\": {\n \"feature_toggle\": \"feature_toggles:feature_toggle\",\n \"feature_toggle_override\": \"feature_toggles:feature_toggle_override\"\n },\n \"workflows\": {\n \"workflow_definition\": \"workflows:workflow_definition\",\n \"workflow_instance\": \"workflows:workflow_instance\",\n \"step_instance\": \"workflows:step_instance\",\n \"user_task\": \"workflows:user_task\",\n \"workflow_event\": \"workflows:workflow_event\",\n \"workflow_event_trigger\": \"workflows:workflow_event_trigger\"\n },\n \"currencies\": {\n \"currency\": \"currencies:currency\",\n \"exchange_rate\": \"currencies:exchange_rate\",\n \"currency_fetch_config\": \"currencies:currency_fetch_config\"\n },\n \"planner\": {\n \"planner_availability_rule_set\": \"planner:planner_availability_rule_set\",\n \"planner_availability_rule\": \"planner:planner_availability_rule\"\n },\n \"resources\": {\n \"resources_resource_type\": \"resources:resources_resource_type\",\n \"resources_resource\": \"resources:resources_resource\",\n \"resources_resource_comment\": \"resources:resources_resource_comment\",\n \"resources_resource_activity\": \"resources:resources_resource_activity\",\n \"resources_resource_tag\": \"resources:resources_resource_tag\",\n \"resources_resource_tag_assignment\": \"resources:resources_resource_tag_assignment\"\n },\n \"staff\": {\n \"staff_team\": \"staff:staff_team\",\n \"staff_team_role\": \"staff:staff_team_role\",\n \"staff_team_member\": \"staff:staff_team_member\",\n \"staff_leave_request\": \"staff:staff_leave_request\",\n \"staff_team_member_comment\": \"staff:staff_team_member_comment\",\n \"staff_team_member_activity\": \"staff:staff_team_member_activity\",\n \"staff_team_member_job_history\": \"staff:staff_team_member_job_history\",\n \"staff_team_member_address\": \"staff:staff_team_member_address\"\n },\n \"notifications\": {\n \"notification\": \"notifications:notification\"\n },\n \"progress\": {\n \"progress_job\": \"progress:progress_job\"\n },\n \"integrations\": {\n \"sync_external_id_mapping\": \"integrations:sync_external_id_mapping\",\n \"integration_credentials\": \"integrations:integration_credentials\",\n \"integration_state\": \"integrations:integration_state\",\n \"integration_log\": \"integrations:integration_log\"\n },\n \"data_sync\": {\n \"sync_run\": \"data_sync:sync_run\",\n \"sync_cursor\": \"data_sync:sync_cursor\",\n \"sync_mapping\": \"data_sync:sync_mapping\",\n \"sync_schedule\": \"data_sync:sync_schedule\"\n },\n \"messages\": {\n \"message\": \"messages:message\",\n \"message_recipient\": \"messages:message_recipient\",\n \"message_object\": \"messages:message_object\",\n \"message_access_token\": \"messages:message_access_token\",\n \"message_confirmation\": \"messages:message_confirmation\"\n },\n \"translations\": {\n \"entity_translation\": \"translations:entity_translation\"\n },\n \"inbox_ops\": {\n \"inbox_settings\": \"inbox_ops:inbox_settings\",\n \"inbox_email\": \"inbox_ops:inbox_email\",\n \"inbox_proposal\": \"inbox_ops:inbox_proposal\",\n \"inbox_proposal_action\": \"inbox_ops:inbox_proposal_action\",\n \"inbox_discrepancy\": \"inbox_ops:inbox_discrepancy\"\n },\n \"payment_gateways\": {\n \"gateway_transaction\": \"payment_gateways:gateway_transaction\",\n \"webhook_processed_event\": \"payment_gateways:webhook_processed_event\"\n },\n \"shipping_carriers\": {\n \"carrier_shipment\": \"shipping_carriers:carrier_shipment\"\n }\n} as const\nexport type KnownModuleId = keyof typeof M\nexport type KnownEntities = typeof E\n"],
5
+ "mappings": "AACO,MAAM,IAAI;AAAA,EACf,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,eAAe;AAAA,EACf,cAAc;AAAA,EACd,eAAe;AAAA,EACf,WAAW;AAAA,EACX,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,aAAa;AAAA,EACb,cAAc;AAAA,EACd,WAAW;AAAA,EACX,aAAa;AAAA,EACb,SAAS;AAAA,EACT,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,oBAAoB;AAAA,EACpB,qBAAqB;AACvB;AACO,MAAM,IAAI;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ClB,uBAAuB;AAAA,IACvB,2BAA2B;AAAA,EAC7B;AAAA,EACA,qBAAqB;AAAA,IACnB,oBAAoB;AAAA,EACtB;AACF;",
6
6
  "names": []
7
7
  }
@@ -4,6 +4,7 @@ import * as api_key from "./entities/api_key/index.js";
4
4
  import * as attachment from "./entities/attachment/index.js";
5
5
  import * as attachment_partition from "./entities/attachment_partition/index.js";
6
6
  import * as business_rule from "./entities/business_rule/index.js";
7
+ import * as carrier_shipment from "./entities/carrier_shipment/index.js";
7
8
  import * as catalog_offer from "./entities/catalog_offer/index.js";
8
9
  import * as catalog_option_schema_template from "./entities/catalog_option_schema_template/index.js";
9
10
  import * as catalog_price_kind from "./entities/catalog_price_kind/index.js";
@@ -52,6 +53,7 @@ import * as entity_translation from "./entities/entity_translation/index.js";
52
53
  import * as exchange_rate from "./entities/exchange_rate/index.js";
53
54
  import * as feature_toggle from "./entities/feature_toggle/index.js";
54
55
  import * as feature_toggle_override from "./entities/feature_toggle_override/index.js";
56
+ import * as gateway_transaction from "./entities/gateway_transaction/index.js";
55
57
  import * as inbox_discrepancy from "./entities/inbox_discrepancy/index.js";
56
58
  import * as inbox_email from "./entities/inbox_email/index.js";
57
59
  import * as inbox_proposal from "./entities/inbox_proposal/index.js";
@@ -136,6 +138,7 @@ import * as user_acl from "./entities/user_acl/index.js";
136
138
  import * as user_role from "./entities/user_role/index.js";
137
139
  import * as user_sidebar_preference from "./entities/user_sidebar_preference/index.js";
138
140
  import * as user_task from "./entities/user_task/index.js";
141
+ import * as webhook_processed_event from "./entities/webhook_processed_event/index.js";
139
142
  import * as workflow_definition from "./entities/workflow_definition/index.js";
140
143
  import * as workflow_event from "./entities/workflow_event/index.js";
141
144
  import * as workflow_event_trigger from "./entities/workflow_event_trigger/index.js";
@@ -147,6 +150,7 @@ const entityFieldsRegistry = {
147
150
  attachment,
148
151
  attachment_partition,
149
152
  business_rule,
153
+ carrier_shipment,
150
154
  catalog_offer,
151
155
  catalog_option_schema_template,
152
156
  catalog_price_kind,
@@ -195,6 +199,7 @@ const entityFieldsRegistry = {
195
199
  exchange_rate,
196
200
  feature_toggle,
197
201
  feature_toggle_override,
202
+ gateway_transaction,
198
203
  inbox_discrepancy,
199
204
  inbox_email,
200
205
  inbox_proposal,
@@ -279,6 +284,7 @@ const entityFieldsRegistry = {
279
284
  user_role,
280
285
  user_sidebar_preference,
281
286
  user_task,
287
+ webhook_processed_event,
282
288
  workflow_definition,
283
289
  workflow_event,
284
290
  workflow_event_trigger,