@open-mercato/core 0.4.6-main-440ca226f2 → 0.4.6-main-a71fbbd3da

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 (467) hide show
  1. package/AGENTS.md +13 -0
  2. package/dist/bootstrap.js +13 -0
  3. package/dist/bootstrap.js.map +2 -2
  4. package/dist/generated/entities/integration_credentials/index.js +19 -0
  5. package/dist/generated/entities/integration_credentials/index.js.map +7 -0
  6. package/dist/generated/entities/integration_log/index.js +27 -0
  7. package/dist/generated/entities/integration_log/index.js.map +7 -0
  8. package/dist/generated/entities/integration_state/index.js +27 -0
  9. package/dist/generated/entities/integration_state/index.js.map +7 -0
  10. package/dist/generated/entities/sync_cursor/index.js +19 -0
  11. package/dist/generated/entities/sync_cursor/index.js.map +7 -0
  12. package/dist/generated/entities/sync_external_id_mapping/index.js +27 -0
  13. package/dist/generated/entities/sync_external_id_mapping/index.js.map +7 -0
  14. package/dist/generated/entities/sync_mapping/index.js +19 -0
  15. package/dist/generated/entities/sync_mapping/index.js.map +7 -0
  16. package/dist/generated/entities/sync_run/index.js +45 -0
  17. package/dist/generated/entities/sync_run/index.js.map +7 -0
  18. package/dist/generated/entities/sync_schedule/index.js +35 -0
  19. package/dist/generated/entities/sync_schedule/index.js.map +7 -0
  20. package/dist/generated/entities.ids.generated.js +14 -0
  21. package/dist/generated/entities.ids.generated.js.map +2 -2
  22. package/dist/generated/entity-fields-registry.js +16 -0
  23. package/dist/generated/entity-fields-registry.js.map +2 -2
  24. package/dist/modules/attachments/components/AttachmentLibrary.js +1 -1
  25. package/dist/modules/attachments/components/AttachmentLibrary.js.map +1 -1
  26. package/dist/modules/auth/api/login.js +4 -0
  27. package/dist/modules/auth/api/login.js.map +2 -2
  28. package/dist/modules/auth/backend/profile/page.js +9 -8
  29. package/dist/modules/auth/backend/profile/page.js.map +2 -2
  30. package/dist/modules/auth/backend/settings/page.js +9 -8
  31. package/dist/modules/auth/backend/settings/page.js.map +2 -2
  32. package/dist/modules/auth/frontend/login-injection.js +1 -0
  33. package/dist/modules/auth/frontend/login-injection.js.map +7 -0
  34. package/dist/modules/auth/frontend/login.js +50 -8
  35. package/dist/modules/auth/frontend/login.js.map +2 -2
  36. package/dist/modules/catalog/backend/catalog/products/[productId]/variants/[variantId]/page.js +9 -16
  37. package/dist/modules/catalog/backend/catalog/products/[productId]/variants/[variantId]/page.js.map +2 -2
  38. package/dist/modules/catalog/components/categories/CategoriesDataTable.js +1 -1
  39. package/dist/modules/catalog/components/categories/CategoriesDataTable.js.map +1 -1
  40. package/dist/modules/catalog/components/products/ProductCategorizeSection.js +1 -0
  41. package/dist/modules/catalog/components/products/ProductCategorizeSection.js.map +2 -2
  42. package/dist/modules/catalog/components/products/variantForm.js +15 -0
  43. package/dist/modules/catalog/components/products/variantForm.js.map +2 -2
  44. package/dist/modules/catalog/migrations/Migration20251116191744.js +4 -4
  45. package/dist/modules/catalog/migrations/Migration20251116191744.js.map +1 -1
  46. package/dist/modules/currencies/backend/currencies/page.js +1 -1
  47. package/dist/modules/currencies/backend/currencies/page.js.map +2 -2
  48. package/dist/modules/currencies/backend/exchange-rates/[id]/page.js +17 -154
  49. package/dist/modules/currencies/backend/exchange-rates/[id]/page.js.map +3 -3
  50. package/dist/modules/currencies/backend/exchange-rates/create/page.js +14 -152
  51. package/dist/modules/currencies/backend/exchange-rates/create/page.js.map +2 -2
  52. package/dist/modules/currencies/lib/exchangeRateFormConfig.js +167 -0
  53. package/dist/modules/currencies/lib/exchangeRateFormConfig.js.map +7 -0
  54. package/dist/modules/customers/api/dashboard/widgets/utils.js +1 -34
  55. package/dist/modules/customers/api/dashboard/widgets/utils.js.map +2 -2
  56. package/dist/modules/customers/api/people/[id]/route.js +4 -2
  57. package/dist/modules/customers/api/people/[id]/route.js.map +2 -2
  58. package/dist/modules/customers/api/todos/route.js +180 -0
  59. package/dist/modules/customers/api/todos/route.js.map +7 -0
  60. package/dist/modules/customers/cli.js +1 -1
  61. package/dist/modules/customers/cli.js.map +2 -2
  62. package/dist/modules/customers/commands/activities.js +3 -8
  63. package/dist/modules/customers/commands/activities.js.map +2 -2
  64. package/dist/modules/customers/commands/comments.js +2 -8
  65. package/dist/modules/customers/commands/comments.js.map +2 -2
  66. package/dist/modules/customers/commands/people.js +15 -0
  67. package/dist/modules/customers/commands/people.js.map +2 -2
  68. package/dist/modules/customers/components/CustomerTodosTable.js +57 -89
  69. package/dist/modules/customers/components/CustomerTodosTable.js.map +2 -2
  70. package/dist/modules/customers/components/detail/hooks/usePersonTasks.js +1 -1
  71. package/dist/modules/customers/components/detail/hooks/usePersonTasks.js.map +1 -1
  72. package/dist/modules/dashboards/lib/widgetScope.js +38 -0
  73. package/dist/modules/dashboards/lib/widgetScope.js.map +7 -0
  74. package/dist/modules/data_sync/acl.js +11 -0
  75. package/dist/modules/data_sync/acl.js.map +7 -0
  76. package/dist/modules/data_sync/api/mappings/[id]/route.js +137 -0
  77. package/dist/modules/data_sync/api/mappings/[id]/route.js.map +7 -0
  78. package/dist/modules/data_sync/api/mappings/route.js +132 -0
  79. package/dist/modules/data_sync/api/mappings/route.js.map +7 -0
  80. package/dist/modules/data_sync/api/run.js +87 -0
  81. package/dist/modules/data_sync/api/run.js.map +7 -0
  82. package/dist/modules/data_sync/api/runs/[id]/cancel.js +49 -0
  83. package/dist/modules/data_sync/api/runs/[id]/cancel.js.map +7 -0
  84. package/dist/modules/data_sync/api/runs/[id]/retry.js +93 -0
  85. package/dist/modules/data_sync/api/runs/[id]/retry.js.map +7 -0
  86. package/dist/modules/data_sync/api/runs/[id]/route.js +69 -0
  87. package/dist/modules/data_sync/api/runs/[id]/route.js.map +7 -0
  88. package/dist/modules/data_sync/api/runs.js +66 -0
  89. package/dist/modules/data_sync/api/runs.js.map +7 -0
  90. package/dist/modules/data_sync/api/validate.js +66 -0
  91. package/dist/modules/data_sync/api/validate.js.map +7 -0
  92. package/dist/modules/data_sync/backend/data-sync/page.js +216 -0
  93. package/dist/modules/data_sync/backend/data-sync/page.js.map +7 -0
  94. package/dist/modules/data_sync/backend/data-sync/page.meta.js +25 -0
  95. package/dist/modules/data_sync/backend/data-sync/page.meta.js.map +7 -0
  96. package/dist/modules/data_sync/backend/data-sync/runs/[id]/page.js +178 -0
  97. package/dist/modules/data_sync/backend/data-sync/runs/[id]/page.js.map +7 -0
  98. package/dist/modules/data_sync/backend/data-sync/runs/[id]/page.meta.js +14 -0
  99. package/dist/modules/data_sync/backend/data-sync/runs/[id]/page.meta.js.map +7 -0
  100. package/dist/modules/data_sync/data/entities.js +228 -0
  101. package/dist/modules/data_sync/data/entities.js.map +7 -0
  102. package/dist/modules/data_sync/data/validators.js +32 -0
  103. package/dist/modules/data_sync/data/validators.js.map +7 -0
  104. package/dist/modules/data_sync/di.js +26 -0
  105. package/dist/modules/data_sync/di.js.map +7 -0
  106. package/dist/modules/data_sync/events.js +16 -0
  107. package/dist/modules/data_sync/events.js.map +7 -0
  108. package/dist/modules/data_sync/index.js +9 -0
  109. package/dist/modules/data_sync/index.js.map +7 -0
  110. package/dist/modules/data_sync/lib/adapter-registry.js +16 -0
  111. package/dist/modules/data_sync/lib/adapter-registry.js.map +7 -0
  112. package/dist/modules/data_sync/lib/adapter.js +1 -0
  113. package/dist/modules/data_sync/lib/adapter.js.map +7 -0
  114. package/dist/modules/data_sync/lib/id-mapping.js +79 -0
  115. package/dist/modules/data_sync/lib/id-mapping.js.map +7 -0
  116. package/dist/modules/data_sync/lib/queue.js +17 -0
  117. package/dist/modules/data_sync/lib/queue.js.map +7 -0
  118. package/dist/modules/data_sync/lib/sync-engine.js +315 -0
  119. package/dist/modules/data_sync/lib/sync-engine.js.map +7 -0
  120. package/dist/modules/data_sync/lib/sync-run-service.js +148 -0
  121. package/dist/modules/data_sync/lib/sync-run-service.js.map +7 -0
  122. package/dist/modules/data_sync/migrations/Migration20260304113737.js +17 -0
  123. package/dist/modules/data_sync/migrations/Migration20260304113737.js.map +7 -0
  124. package/dist/modules/data_sync/setup.js +13 -0
  125. package/dist/modules/data_sync/setup.js.map +7 -0
  126. package/dist/modules/data_sync/workers/sync-export.js +14 -0
  127. package/dist/modules/data_sync/workers/sync-export.js.map +7 -0
  128. package/dist/modules/data_sync/workers/sync-import.js +14 -0
  129. package/dist/modules/data_sync/workers/sync-import.js.map +7 -0
  130. package/dist/modules/data_sync/workers/sync-scheduled.js +63 -0
  131. package/dist/modules/data_sync/workers/sync-scheduled.js.map +7 -0
  132. package/dist/modules/dictionaries/components/DictionaryEntrySelect.js +1 -1
  133. package/dist/modules/dictionaries/components/DictionaryEntrySelect.js.map +1 -1
  134. package/dist/modules/directory/api/tenants/route.js +4 -1
  135. package/dist/modules/directory/api/tenants/route.js.map +2 -2
  136. package/dist/modules/directory/backend/directory/organizations/page.js +1 -1
  137. package/dist/modules/directory/backend/directory/organizations/page.js.map +1 -1
  138. package/dist/modules/directory/backend/directory/tenants/page.js +1 -1
  139. package/dist/modules/directory/backend/directory/tenants/page.js.map +1 -1
  140. package/dist/modules/directory/components/TenantSelect.js +8 -1
  141. package/dist/modules/directory/components/TenantSelect.js.map +2 -2
  142. package/dist/modules/entities/lib/encryptionDefaults.js +4 -0
  143. package/dist/modules/entities/lib/encryptionDefaults.js.map +2 -2
  144. package/dist/modules/entities/lib/makeActivityRoute.js +265 -0
  145. package/dist/modules/entities/lib/makeActivityRoute.js.map +7 -0
  146. package/dist/modules/feature_toggles/components/FeatureTogglesTable.js +1 -1
  147. package/dist/modules/feature_toggles/components/FeatureTogglesTable.js.map +1 -1
  148. package/dist/modules/feature_toggles/components/OverridesTable.js +1 -1
  149. package/dist/modules/feature_toggles/components/OverridesTable.js.map +1 -1
  150. package/dist/modules/feature_toggles/components/formConfig.js +1 -0
  151. package/dist/modules/feature_toggles/components/formConfig.js.map +2 -2
  152. package/dist/modules/feature_toggles/components/overrideFormConfig.js +1 -0
  153. package/dist/modules/feature_toggles/components/overrideFormConfig.js.map +2 -2
  154. package/dist/modules/integrations/acl.js +4 -1
  155. package/dist/modules/integrations/acl.js.map +2 -2
  156. package/dist/modules/integrations/api/[id]/credentials/route.js +127 -0
  157. package/dist/modules/integrations/api/[id]/credentials/route.js.map +7 -0
  158. package/dist/modules/integrations/api/[id]/health/route.js +46 -0
  159. package/dist/modules/integrations/api/[id]/health/route.js.map +7 -0
  160. package/dist/modules/integrations/api/[id]/route.js +73 -0
  161. package/dist/modules/integrations/api/[id]/route.js.map +7 -0
  162. package/dist/modules/integrations/api/[id]/state/route.js +109 -0
  163. package/dist/modules/integrations/api/[id]/state/route.js.map +7 -0
  164. package/dist/modules/integrations/api/[id]/version/route.js +117 -0
  165. package/dist/modules/integrations/api/[id]/version/route.js.map +7 -0
  166. package/dist/modules/integrations/api/guards.js +31 -0
  167. package/dist/modules/integrations/api/guards.js.map +7 -0
  168. package/dist/modules/integrations/api/logs/route.js +60 -0
  169. package/dist/modules/integrations/api/logs/route.js.map +7 -0
  170. package/dist/modules/integrations/api/openapi.js +25 -0
  171. package/dist/modules/integrations/api/openapi.js.map +7 -0
  172. package/dist/modules/integrations/api/route.js +68 -0
  173. package/dist/modules/integrations/api/route.js.map +7 -0
  174. package/dist/modules/integrations/backend/integrations/[id]/page.js +317 -0
  175. package/dist/modules/integrations/backend/integrations/[id]/page.js.map +7 -0
  176. package/dist/modules/integrations/backend/integrations/[id]/page.meta.js +15 -0
  177. package/dist/modules/integrations/backend/integrations/[id]/page.meta.js.map +7 -0
  178. package/dist/modules/integrations/backend/integrations/bundle/[id]/page.js +193 -0
  179. package/dist/modules/integrations/backend/integrations/bundle/[id]/page.js.map +7 -0
  180. package/dist/modules/integrations/backend/integrations/bundle/[id]/page.meta.js +15 -0
  181. package/dist/modules/integrations/backend/integrations/bundle/[id]/page.meta.js.map +7 -0
  182. package/dist/modules/integrations/backend/integrations/filters.js +40 -0
  183. package/dist/modules/integrations/backend/integrations/filters.js.map +7 -0
  184. package/dist/modules/integrations/backend/integrations/page.js +224 -0
  185. package/dist/modules/integrations/backend/integrations/page.js.map +7 -0
  186. package/dist/modules/integrations/backend/integrations/page.meta.js +22 -0
  187. package/dist/modules/integrations/backend/integrations/page.meta.js.map +7 -0
  188. package/dist/modules/integrations/data/enrichers.js +27 -12
  189. package/dist/modules/integrations/data/enrichers.js.map +2 -2
  190. package/dist/modules/integrations/data/entities.js +136 -1
  191. package/dist/modules/integrations/data/entities.js.map +2 -2
  192. package/dist/modules/integrations/data/validators.js +36 -0
  193. package/dist/modules/integrations/data/validators.js.map +7 -0
  194. package/dist/modules/integrations/di.js +24 -0
  195. package/dist/modules/integrations/di.js.map +7 -0
  196. package/dist/modules/integrations/events.js +19 -0
  197. package/dist/modules/integrations/events.js.map +7 -0
  198. package/dist/modules/integrations/lib/credentials-service.js +163 -0
  199. package/dist/modules/integrations/lib/credentials-service.js.map +7 -0
  200. package/dist/modules/integrations/lib/health-service.js +37 -0
  201. package/dist/modules/integrations/lib/health-service.js.map +7 -0
  202. package/dist/modules/integrations/lib/log-service.js +66 -0
  203. package/dist/modules/integrations/lib/log-service.js.map +7 -0
  204. package/dist/modules/integrations/lib/registry-service.js +33 -0
  205. package/dist/modules/integrations/lib/registry-service.js.map +7 -0
  206. package/dist/modules/integrations/lib/state-service.js +55 -0
  207. package/dist/modules/integrations/lib/state-service.js.map +7 -0
  208. package/dist/modules/integrations/migrations/Migration20260304113737.js +19 -0
  209. package/dist/modules/integrations/migrations/Migration20260304113737.js.map +7 -0
  210. package/dist/modules/integrations/setup.js +2 -2
  211. package/dist/modules/integrations/setup.js.map +2 -2
  212. package/dist/modules/integrations/widgets/injection-table.js.map +1 -1
  213. package/dist/modules/integrations/workers/log-pruner.js +18 -0
  214. package/dist/modules/integrations/workers/log-pruner.js.map +7 -0
  215. package/dist/modules/messages/components/MessagesInboxPageClient.js +2 -2
  216. package/dist/modules/messages/components/MessagesInboxPageClient.js.map +1 -1
  217. package/dist/modules/notifications/events.js +30 -0
  218. package/dist/modules/notifications/events.js.map +7 -0
  219. package/dist/modules/notifications/frontend/NotificationInboxPageClient.js +2 -3
  220. package/dist/modules/notifications/frontend/NotificationInboxPageClient.js.map +2 -2
  221. package/dist/modules/notifications/lib/events.js +6 -1
  222. package/dist/modules/notifications/lib/events.js.map +2 -2
  223. package/dist/modules/notifications/lib/notificationMapper.js +10 -1
  224. package/dist/modules/notifications/lib/notificationMapper.js.map +2 -2
  225. package/dist/modules/notifications/lib/notificationService.js +26 -1
  226. package/dist/modules/notifications/lib/notificationService.js.map +2 -2
  227. package/dist/modules/progress/events.js +6 -6
  228. package/dist/modules/progress/events.js.map +2 -2
  229. package/dist/modules/progress/lib/events.js.map +1 -1
  230. package/dist/modules/progress/lib/progressServiceImpl.js +38 -29
  231. package/dist/modules/progress/lib/progressServiceImpl.js.map +2 -2
  232. package/dist/modules/query_index/api/reindex.js +3 -0
  233. package/dist/modules/query_index/api/reindex.js.map +2 -2
  234. package/dist/modules/query_index/components/QueryIndexesTable.js +8 -10
  235. package/dist/modules/query_index/components/QueryIndexesTable.js.map +2 -2
  236. package/dist/modules/query_index/lib/coverage.js +1 -1
  237. package/dist/modules/query_index/lib/coverage.js.map +2 -2
  238. package/dist/modules/query_index/lib/engine.js +42 -5
  239. package/dist/modules/query_index/lib/engine.js.map +2 -2
  240. package/dist/modules/query_index/subscribers/reindex.js +89 -1
  241. package/dist/modules/query_index/subscribers/reindex.js.map +2 -2
  242. package/dist/modules/resources/api/activities.js +24 -232
  243. package/dist/modules/resources/api/activities.js.map +2 -2
  244. package/dist/modules/resources/commands/activities.js +3 -8
  245. package/dist/modules/resources/commands/activities.js.map +2 -2
  246. package/dist/modules/resources/commands/comments.js +2 -8
  247. package/dist/modules/resources/commands/comments.js.map +2 -2
  248. package/dist/modules/sales/api/dashboard/widgets/new-orders/route.js +27 -182
  249. package/dist/modules/sales/api/dashboard/widgets/new-orders/route.js.map +2 -2
  250. package/dist/modules/sales/api/dashboard/widgets/new-quotes/route.js +28 -183
  251. package/dist/modules/sales/api/dashboard/widgets/new-quotes/route.js.map +2 -2
  252. package/dist/modules/sales/api/order-line-statuses/route.js +15 -194
  253. package/dist/modules/sales/api/order-line-statuses/route.js.map +2 -2
  254. package/dist/modules/sales/api/order-lines/route.js +15 -281
  255. package/dist/modules/sales/api/order-lines/route.js.map +2 -2
  256. package/dist/modules/sales/api/order-statuses/route.js +15 -194
  257. package/dist/modules/sales/api/order-statuses/route.js.map +2 -2
  258. package/dist/modules/sales/api/payment-statuses/route.js +15 -194
  259. package/dist/modules/sales/api/payment-statuses/route.js.map +2 -2
  260. package/dist/modules/sales/api/quote-lines/route.js +15 -279
  261. package/dist/modules/sales/api/quote-lines/route.js.map +2 -2
  262. package/dist/modules/sales/api/quotes/convert/route.js +31 -14
  263. package/dist/modules/sales/api/quotes/convert/route.js.map +2 -2
  264. package/dist/modules/sales/api/quotes/send/route.js +31 -14
  265. package/dist/modules/sales/api/quotes/send/route.js.map +2 -2
  266. package/dist/modules/sales/api/shipment-statuses/route.js +15 -194
  267. package/dist/modules/sales/api/shipment-statuses/route.js.map +2 -2
  268. package/dist/modules/sales/components/PaymentMethodsSettings.js +3 -84
  269. package/dist/modules/sales/components/PaymentMethodsSettings.js.map +2 -2
  270. package/dist/modules/sales/components/ProviderFieldInput.js +86 -0
  271. package/dist/modules/sales/components/ProviderFieldInput.js.map +7 -0
  272. package/dist/modules/sales/components/ShippingMethodsSettings.js +3 -82
  273. package/dist/modules/sales/components/ShippingMethodsSettings.js.map +2 -2
  274. package/dist/modules/sales/lib/makeSalesLineRoute.js +308 -0
  275. package/dist/modules/sales/lib/makeSalesLineRoute.js.map +7 -0
  276. package/dist/modules/sales/lib/makeStatusDictionaryRoute.js +206 -0
  277. package/dist/modules/sales/lib/makeStatusDictionaryRoute.js.map +7 -0
  278. package/dist/modules/sales/widgets/dashboard/makeDashboardWidgetRoute.js +178 -0
  279. package/dist/modules/sales/widgets/dashboard/makeDashboardWidgetRoute.js.map +7 -0
  280. package/dist/modules/sales/widgets/dashboard/new-orders/widget.client.js +1 -39
  281. package/dist/modules/sales/widgets/dashboard/new-orders/widget.client.js.map +2 -2
  282. package/dist/modules/sales/widgets/dashboard/new-quotes/widget.client.js +1 -39
  283. package/dist/modules/sales/widgets/dashboard/new-quotes/widget.client.js.map +2 -2
  284. package/dist/modules/sales/widgets/dashboard/shared.js +46 -0
  285. package/dist/modules/sales/widgets/dashboard/shared.js.map +7 -0
  286. package/dist/modules/staff/api/activities.js +24 -232
  287. package/dist/modules/staff/api/activities.js.map +2 -2
  288. package/dist/modules/staff/backend/staff/leave-requests/[id]/page.js +14 -34
  289. package/dist/modules/staff/backend/staff/leave-requests/[id]/page.js.map +2 -2
  290. package/dist/modules/staff/backend/staff/my-leave-requests/[id]/page.js +15 -34
  291. package/dist/modules/staff/backend/staff/my-leave-requests/[id]/page.js.map +2 -2
  292. package/dist/modules/staff/commands/activities.js +3 -8
  293. package/dist/modules/staff/commands/activities.js.map +2 -2
  294. package/dist/modules/staff/commands/comments.js +2 -8
  295. package/dist/modules/staff/commands/comments.js.map +2 -2
  296. package/dist/modules/staff/lib/leaveRequestHelpers.js +41 -0
  297. package/dist/modules/staff/lib/leaveRequestHelpers.js.map +7 -0
  298. package/dist/modules/translations/components/TranslationManager.js +2 -0
  299. package/dist/modules/translations/components/TranslationManager.js.map +2 -2
  300. package/generated/entities/integration_credentials/index.ts +8 -0
  301. package/generated/entities/integration_log/index.ts +12 -0
  302. package/generated/entities/integration_state/index.ts +12 -0
  303. package/generated/entities/sync_cursor/index.ts +8 -0
  304. package/generated/entities/sync_external_id_mapping/index.ts +12 -0
  305. package/generated/entities/sync_mapping/index.ts +8 -0
  306. package/generated/entities/sync_run/index.ts +21 -0
  307. package/generated/entities/sync_schedule/index.ts +16 -0
  308. package/generated/entities.ids.generated.ts +14 -0
  309. package/generated/entity-fields-registry.ts +16 -0
  310. package/package.json +2 -2
  311. package/src/bootstrap.ts +16 -0
  312. package/src/modules/attachments/components/AttachmentLibrary.tsx +1 -1
  313. package/src/modules/auth/api/login.ts +4 -0
  314. package/src/modules/auth/backend/profile/page.tsx +8 -15
  315. package/src/modules/auth/backend/settings/page.tsx +8 -15
  316. package/src/modules/auth/frontend/login-injection.ts +47 -0
  317. package/src/modules/auth/frontend/login.tsx +68 -18
  318. package/src/modules/catalog/backend/catalog/products/[productId]/variants/[variantId]/page.tsx +8 -35
  319. package/src/modules/catalog/components/categories/CategoriesDataTable.tsx +1 -1
  320. package/src/modules/catalog/components/products/ProductCategorizeSection.tsx +1 -0
  321. package/src/modules/catalog/components/products/variantForm.ts +38 -0
  322. package/src/modules/catalog/migrations/Migration20251116191744.ts +4 -4
  323. package/src/modules/currencies/backend/currencies/page.tsx +1 -1
  324. package/src/modules/currencies/backend/exchange-rates/[id]/page.tsx +20 -180
  325. package/src/modules/currencies/backend/exchange-rates/create/page.tsx +16 -175
  326. package/src/modules/currencies/lib/exchangeRateFormConfig.ts +200 -0
  327. package/src/modules/customers/api/dashboard/widgets/utils.ts +1 -53
  328. package/src/modules/customers/api/people/[id]/route.ts +2 -0
  329. package/src/modules/customers/api/todos/route.ts +209 -0
  330. package/src/modules/customers/cli.ts +2 -1
  331. package/src/modules/customers/commands/activities.ts +2 -8
  332. package/src/modules/customers/commands/comments.ts +2 -8
  333. package/src/modules/customers/commands/people.ts +9 -0
  334. package/src/modules/customers/components/CustomerTodosTable.tsx +15 -59
  335. package/src/modules/customers/components/detail/hooks/usePersonTasks.ts +1 -1
  336. package/src/modules/dashboards/i18n/de.json +3 -0
  337. package/src/modules/dashboards/i18n/en.json +3 -0
  338. package/src/modules/dashboards/i18n/es.json +3 -0
  339. package/src/modules/dashboards/i18n/pl.json +3 -0
  340. package/src/modules/dashboards/lib/widgetScope.ts +53 -0
  341. package/src/modules/data_sync/AGENTS.md +157 -0
  342. package/src/modules/data_sync/acl.ts +7 -0
  343. package/src/modules/data_sync/api/mappings/[id]/route.ts +158 -0
  344. package/src/modules/data_sync/api/mappings/route.ts +144 -0
  345. package/src/modules/data_sync/api/run.ts +97 -0
  346. package/src/modules/data_sync/api/runs/[id]/cancel.ts +57 -0
  347. package/src/modules/data_sync/api/runs/[id]/retry.ts +108 -0
  348. package/src/modules/data_sync/api/runs/[id]/route.ts +81 -0
  349. package/src/modules/data_sync/api/runs.ts +69 -0
  350. package/src/modules/data_sync/api/validate.ts +73 -0
  351. package/src/modules/data_sync/backend/data-sync/page.meta.ts +21 -0
  352. package/src/modules/data_sync/backend/data-sync/page.tsx +244 -0
  353. package/src/modules/data_sync/backend/data-sync/runs/[id]/page.meta.ts +10 -0
  354. package/src/modules/data_sync/backend/data-sync/runs/[id]/page.tsx +278 -0
  355. package/src/modules/data_sync/data/entities.ts +180 -0
  356. package/src/modules/data_sync/data/validators.ts +35 -0
  357. package/src/modules/data_sync/di.ts +38 -0
  358. package/src/modules/data_sync/events.ts +12 -0
  359. package/src/modules/data_sync/i18n/de.json +48 -0
  360. package/src/modules/data_sync/i18n/en.json +48 -0
  361. package/src/modules/data_sync/i18n/es.json +48 -0
  362. package/src/modules/data_sync/i18n/pl.json +48 -0
  363. package/src/modules/data_sync/index.ts +5 -0
  364. package/src/modules/data_sync/lib/adapter-registry.ts +15 -0
  365. package/src/modules/data_sync/lib/adapter.ts +90 -0
  366. package/src/modules/data_sync/lib/id-mapping.ts +95 -0
  367. package/src/modules/data_sync/lib/queue.ts +19 -0
  368. package/src/modules/data_sync/lib/sync-engine.ts +381 -0
  369. package/src/modules/data_sync/lib/sync-run-service.ts +187 -0
  370. package/src/modules/data_sync/migrations/.snapshot-open-mercato.json +653 -0
  371. package/src/modules/data_sync/migrations/Migration20260304113737.ts +19 -0
  372. package/src/modules/data_sync/setup.ts +11 -0
  373. package/src/modules/data_sync/workers/sync-export.ts +27 -0
  374. package/src/modules/data_sync/workers/sync-import.ts +27 -0
  375. package/src/modules/data_sync/workers/sync-scheduled.ts +84 -0
  376. package/src/modules/dictionaries/components/DictionaryEntrySelect.tsx +1 -1
  377. package/src/modules/directory/api/tenants/route.ts +4 -1
  378. package/src/modules/directory/backend/directory/organizations/page.tsx +1 -1
  379. package/src/modules/directory/backend/directory/tenants/page.tsx +1 -1
  380. package/src/modules/directory/components/TenantSelect.tsx +9 -1
  381. package/src/modules/entities/lib/encryptionDefaults.ts +4 -0
  382. package/src/modules/entities/lib/makeActivityRoute.ts +327 -0
  383. package/src/modules/feature_toggles/components/FeatureTogglesTable.tsx +1 -1
  384. package/src/modules/feature_toggles/components/OverridesTable.tsx +1 -1
  385. package/src/modules/feature_toggles/components/formConfig.tsx +1 -0
  386. package/src/modules/feature_toggles/components/overrideFormConfig.tsx +1 -0
  387. package/src/modules/integrations/AGENTS.md +160 -0
  388. package/src/modules/integrations/acl.ts +3 -0
  389. package/src/modules/integrations/api/[id]/credentials/route.ts +142 -0
  390. package/src/modules/integrations/api/[id]/health/route.ts +53 -0
  391. package/src/modules/integrations/api/[id]/route.ts +84 -0
  392. package/src/modules/integrations/api/[id]/state/route.ts +121 -0
  393. package/src/modules/integrations/api/[id]/version/route.ts +132 -0
  394. package/src/modules/integrations/api/guards.ts +59 -0
  395. package/src/modules/integrations/api/logs/route.ts +63 -0
  396. package/src/modules/integrations/api/openapi.ts +22 -0
  397. package/src/modules/integrations/api/route.ts +73 -0
  398. package/src/modules/integrations/backend/integrations/[id]/page.meta.ts +11 -0
  399. package/src/modules/integrations/backend/integrations/[id]/page.tsx +430 -0
  400. package/src/modules/integrations/backend/integrations/bundle/[id]/page.meta.ts +11 -0
  401. package/src/modules/integrations/backend/integrations/bundle/[id]/page.tsx +255 -0
  402. package/src/modules/integrations/backend/integrations/filters.ts +39 -0
  403. package/src/modules/integrations/backend/integrations/page.meta.ts +18 -0
  404. package/src/modules/integrations/backend/integrations/page.tsx +310 -0
  405. package/src/modules/integrations/data/enrichers.ts +35 -18
  406. package/src/modules/integrations/data/entities.ts +114 -5
  407. package/src/modules/integrations/data/validators.ts +41 -0
  408. package/src/modules/integrations/di.ts +31 -0
  409. package/src/modules/integrations/events.ts +17 -0
  410. package/src/modules/integrations/i18n/de.json +147 -0
  411. package/src/modules/integrations/i18n/en.json +147 -0
  412. package/src/modules/integrations/i18n/es.json +147 -0
  413. package/src/modules/integrations/i18n/pl.json +147 -0
  414. package/src/modules/integrations/lib/credentials-service.ts +208 -0
  415. package/src/modules/integrations/lib/health-service.ts +58 -0
  416. package/src/modules/integrations/lib/log-service.ts +84 -0
  417. package/src/modules/integrations/lib/registry-service.ts +42 -0
  418. package/src/modules/integrations/lib/state-service.ts +64 -0
  419. package/src/modules/integrations/migrations/.snapshot-open-mercato.json +582 -0
  420. package/src/modules/integrations/migrations/Migration20260304113737.ts +21 -0
  421. package/src/modules/integrations/setup.ts +2 -2
  422. package/src/modules/integrations/widgets/injection-table.ts +1 -1
  423. package/src/modules/integrations/workers/log-pruner.ts +30 -0
  424. package/src/modules/messages/components/MessagesInboxPageClient.tsx +2 -2
  425. package/src/modules/notifications/README.md +21 -0
  426. package/src/modules/notifications/events.ts +28 -0
  427. package/src/modules/notifications/frontend/NotificationInboxPageClient.tsx +2 -3
  428. package/src/modules/notifications/lib/events.ts +5 -0
  429. package/src/modules/notifications/lib/notificationMapper.ts +12 -1
  430. package/src/modules/notifications/lib/notificationService.ts +33 -1
  431. package/src/modules/progress/events.ts +6 -6
  432. package/src/modules/progress/lib/events.ts +60 -0
  433. package/src/modules/progress/lib/progressServiceImpl.ts +32 -22
  434. package/src/modules/query_index/api/reindex.ts +3 -0
  435. package/src/modules/query_index/components/QueryIndexesTable.tsx +8 -10
  436. package/src/modules/query_index/lib/coverage.ts +2 -1
  437. package/src/modules/query_index/lib/engine.ts +49 -6
  438. package/src/modules/query_index/subscribers/reindex.ts +99 -0
  439. package/src/modules/resources/api/activities.ts +25 -269
  440. package/src/modules/resources/commands/activities.ts +2 -7
  441. package/src/modules/resources/commands/comments.ts +2 -8
  442. package/src/modules/sales/api/dashboard/widgets/new-orders/route.ts +29 -244
  443. package/src/modules/sales/api/dashboard/widgets/new-quotes/route.ts +30 -245
  444. package/src/modules/sales/api/order-line-statuses/route.ts +16 -209
  445. package/src/modules/sales/api/order-lines/route.ts +16 -300
  446. package/src/modules/sales/api/order-statuses/route.ts +16 -209
  447. package/src/modules/sales/api/payment-statuses/route.ts +16 -209
  448. package/src/modules/sales/api/quote-lines/route.ts +16 -298
  449. package/src/modules/sales/api/quotes/convert/route.ts +55 -14
  450. package/src/modules/sales/api/quotes/send/route.ts +55 -14
  451. package/src/modules/sales/api/shipment-statuses/route.ts +16 -209
  452. package/src/modules/sales/components/PaymentMethodsSettings.tsx +3 -88
  453. package/src/modules/sales/components/ProviderFieldInput.tsx +85 -0
  454. package/src/modules/sales/components/ShippingMethodsSettings.tsx +3 -86
  455. package/src/modules/sales/lib/makeSalesLineRoute.ts +345 -0
  456. package/src/modules/sales/lib/makeStatusDictionaryRoute.ts +229 -0
  457. package/src/modules/sales/widgets/dashboard/makeDashboardWidgetRoute.ts +247 -0
  458. package/src/modules/sales/widgets/dashboard/new-orders/widget.client.tsx +7 -50
  459. package/src/modules/sales/widgets/dashboard/new-quotes/widget.client.tsx +7 -49
  460. package/src/modules/sales/widgets/dashboard/shared.ts +44 -0
  461. package/src/modules/staff/api/activities.ts +25 -269
  462. package/src/modules/staff/backend/staff/leave-requests/[id]/page.tsx +15 -69
  463. package/src/modules/staff/backend/staff/my-leave-requests/[id]/page.tsx +16 -65
  464. package/src/modules/staff/commands/activities.ts +2 -7
  465. package/src/modules/staff/commands/comments.ts +2 -8
  466. package/src/modules/staff/lib/leaveRequestHelpers.ts +78 -0
  467. package/src/modules/translations/components/TranslationManager.tsx +2 -0
package/AGENTS.md CHANGED
@@ -234,9 +234,21 @@ src/modules/<module>/
234
234
  ```
235
235
 
236
236
  - **Notification types**: Declare in `notifications.ts` exporting `notificationTypes: NotificationTypeDefinition[]`
237
+ - **Reactive handlers**: Declare in `notifications.handlers.ts` exporting `notificationHandlers: NotificationHandler[]`
237
238
  - **Subscribers**: Create event subscribers in `subscribers/` to emit notifications on domain events
238
239
  - **Client renderers**: Declare in `notifications.client.ts`; store components in `widgets/notifications/`
239
240
  - **i18n**: Add translations to `i18n/<locale>.json` under `<module>.notifications.*` keys
241
+ - **Handler behavior**: Keep handlers idempotent; use `ctx.emitEvent(...)` for cross-component updates and `ctx.toast(...)`/`ctx.popup(...)` for UX side-effects
242
+
243
+ ## Integrations & Data Sync
244
+
245
+ > **Moved**: Detailed guides now live in dedicated module AGENTS.md files:
246
+ > - `src/modules/integrations/AGENTS.md` — foundation layer (registry, credentials, state, health, logs, admin UI)
247
+ > - `src/modules/data_sync/AGENTS.md` — sync hub (adapters, run lifecycle, workers, mappings, admin UI)
248
+ >
249
+ > Docs reference:
250
+ > - `apps/docs/docs/framework/modules/integrations-data-sync.mdx`
251
+ > - `apps/docs/docs/api/integrations-data-sync.mdx`
240
252
 
241
253
  ## Widget Injection
242
254
 
@@ -274,6 +286,7 @@ Define route interceptors in `api/interceptors.ts` and export `interceptors`.
274
286
  - Keep scope explicit with `targetRoute` + `methods`; use wildcards only when required.
275
287
  - `before`/`after` hooks must be fail-closed and timeout-safe.
276
288
  - If `before` rewrites body/query, return a schema-compatible payload (route handler re-validates it).
289
+ - For CRUD list narrowing, prefer writing `query.ids` (comma-separated UUIDs). The CRUD factory merges/intersects `ids` with existing `id` filters.
277
290
 
278
291
  ## Component Replacement
279
292
 
package/dist/bootstrap.js CHANGED
@@ -82,6 +82,19 @@ async function bootstrap(container) {
82
82
  }
83
83
  const subs = loadedModules.flatMap((m) => m.subscribers || []);
84
84
  if (subs.length) container.resolve("eventBus").registerModuleSubscribers(subs);
85
+ const syncSubs = subs.filter((s) => s.sync === true);
86
+ if (syncSubs.length) {
87
+ try {
88
+ const { registerSyncSubscribers } = await import("@open-mercato/shared/lib/crud/sync-subscriber-store");
89
+ registerSyncSubscribers(
90
+ syncSubs.map((s) => ({
91
+ metadata: { event: s.event, sync: true, priority: s.priority, id: s.id },
92
+ handler: s.handler
93
+ }))
94
+ );
95
+ } catch {
96
+ }
97
+ }
85
98
  } catch (err) {
86
99
  console.error("Failed to register module subscribers:", err);
87
100
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/bootstrap.ts"],
4
- "sourcesContent": ["import type { AwilixContainer } from 'awilix'\nimport { asValue } from 'awilix'\nimport { createEventBus } from '@open-mercato/events/index'\nimport { setGlobalEventBus } from '@open-mercato/shared/modules/events'\nimport { createCacheService } from '@open-mercato/cache'\nimport { createKmsService } from '@open-mercato/shared/lib/encryption/kms'\nimport { TenantDataEncryptionService } from '@open-mercato/shared/lib/encryption/tenantDataEncryptionService'\nimport { registerTenantEncryptionSubscriber } from '@open-mercato/shared/lib/encryption/subscriber'\nimport { isTenantDataEncryptionEnabled } from '@open-mercato/shared/lib/encryption/toggles'\nimport { getSearchModuleConfigs } from '@open-mercato/shared/modules/search'\nimport {\n registerSearchModule,\n createSearchDeleteSubscriber,\n searchDeleteMetadata,\n} from '@open-mercato/search'\nimport { RateLimiterService } from '@open-mercato/shared/lib/ratelimit/service'\nimport { readRateLimitConfig } from '@open-mercato/shared/lib/ratelimit/config'\nimport type { EntityManager } from '@mikro-orm/postgresql'\n\n// Use globalThis to survive tsx/webpack module duplication (same pattern as container.ts DI registrars)\nconst RL_GLOBAL_KEY = '__openMercatoRateLimiterService__'\nconst RL_SHUTDOWN_KEY = '__openMercatoRateLimiterShutdown__'\n\nexport function getCachedRateLimiterService(): RateLimiterService | null {\n let service = (globalThis as any)[RL_GLOBAL_KEY] as RateLimiterService | null ?? null\n if (!service) {\n try {\n const rateLimitConfig = readRateLimitConfig()\n service = new RateLimiterService(rateLimitConfig)\n // Fire-and-forget async init (only needed for Redis strategy;\n // memory strategy works synchronously, and Redis has an in-memory\n // insurance limiter so the first few requests are still protected)\n service.initialize().catch((err) => {\n console.warn('[ratelimit] Async initialization failed:', (err as Error)?.message || err)\n })\n ;(globalThis as any)[RL_GLOBAL_KEY] = service\n\n // Register shutdown hook once to disconnect Redis on process exit\n if (!(globalThis as any)[RL_SHUTDOWN_KEY]) {\n const shutdown = () => { service?.destroy().catch(() => {}) }\n process.once('SIGTERM', shutdown)\n process.once('SIGINT', shutdown)\n ;(globalThis as any)[RL_SHUTDOWN_KEY] = true\n }\n } catch (err) {\n console.warn('[ratelimit] Failed to create rate limiter service:', (err as Error)?.message || err)\n }\n }\n return service\n}\n\nexport async function bootstrap(container: AwilixContainer) {\n // Create and register the cache service\n let cache: any\n try {\n cache = createCacheService()\n } catch (err: any) {\n console.warn('Cache service initialization failed; falling back to memory strategy:', err?.message || err)\n cache = createCacheService({ strategy: 'memory' })\n }\n container.register({ cache: asValue(cache) })\n\n // Create and register the DI-aware event bus\n let eventBus: any\n try {\n // Support both QUEUE_STRATEGY and legacy EVENTS_STRATEGY env vars\n const strategyEnv = process.env.QUEUE_STRATEGY || process.env.EVENTS_STRATEGY\n const queueStrategy = strategyEnv === 'async' || strategyEnv === 'redis' ? 'async' : 'local'\n eventBus = createEventBus({ resolve: container.resolve.bind(container) as any, queueStrategy })\n } catch (err: any) {\n // Fall back to local strategy to avoid breaking the app on misconfiguration\n console.warn('Event bus initialization failed; falling back to local strategy:', err?.message || err)\n try {\n eventBus = createEventBus({ resolve: container.resolve.bind(container) as any, queueStrategy: 'local' })\n } catch {\n // In extreme cases, provide a no-op bus to avoid crashes\n eventBus = {\n emit: async () => {},\n on: () => {},\n registerModuleSubscribers: () => {},\n clearQueue: async () => ({ removed: 0 }),\n }\n }\n }\n container.register({ eventBus: asValue(eventBus) })\n // Wire the global event bus so createModuleEvents().emit works outside DI context\n setGlobalEventBus(eventBus)\n // Auto-register discovered module subscribers\n try {\n let loadedModules: any[] = []\n try {\n const { getModules } = await import('@open-mercato/shared/lib/i18n/server')\n loadedModules = getModules()\n } catch {}\n const subs = loadedModules.flatMap((m) => m.subscribers || [])\n if (subs.length) (container.resolve as any)('eventBus').registerModuleSubscribers(subs)\n } catch (err) {\n console.error(\"Failed to register module subscribers:\", err);\n }\n\n // KMS + tenant encryption\n const kmsService = createKmsService()\n container.register({ kmsService: asValue(kmsService) })\n try {\n const em = container.resolve('em') as EntityManager\n const cacheService = (() => {\n try { return container.resolve('cache') as any } catch { return null }\n })()\n const tenantEncryptionService = new TenantDataEncryptionService(em, { cache: cacheService, kms: kmsService })\n container.register({ tenantEncryptionService: asValue(tenantEncryptionService) })\n if (isTenantDataEncryptionEnabled() && kmsService.isHealthy()) {\n try {\n registerTenantEncryptionSubscriber(em, tenantEncryptionService)\n } catch (err) {\n console.warn('[encryption] Failed to register MikroORM encryption subscriber:', (err as Error)?.message || err)\n }\n } else if (isTenantDataEncryptionEnabled() && !kmsService.isHealthy()) {\n console.warn('[encryption] Vault/KMS unhealthy - tenant data encryption is disabled until recovery')\n }\n } catch (err) {\n console.warn('[encryption] Failed to initialize tenant encryption service:', (err as Error)?.message || err)\n }\n\n // Register rate limiter service (singleton via globalThis \u2014 reused across request containers)\n // getCachedRateLimiterService() never throws; returns null on failure\n const rateLimiterService = getCachedRateLimiterService()\n if (rateLimiterService) {\n container.register({ rateLimiterService: asValue(rateLimiterService) })\n }\n\n // Register search module\n try {\n // Get configs from global registry (registered during app bootstrap)\n const searchModuleConfigs = getSearchModuleConfigs()\n registerSearchModule(container as any, { moduleConfigs: searchModuleConfigs })\n\n // Register searchModuleConfigs in container so status API can access vector-enabled entities\n container.register({\n searchModuleConfigs: asValue(searchModuleConfigs),\n })\n\n // Register search delete event subscriber\n // Note: search.index_record is now handled by auto-discovered fulltext_upsert.ts subscriber\n try {\n const searchIndexer = container.resolve('searchIndexer') as any\n if (searchIndexer && eventBus) {\n eventBus.registerModuleSubscribers([\n {\n event: searchDeleteMetadata.event,\n persistent: searchDeleteMetadata.persistent,\n handler: createSearchDeleteSubscriber(searchIndexer),\n },\n ])\n }\n } catch {\n // searchIndexer may not be available\n }\n } catch (err) {\n console.warn('[search] Failed to register search module:', (err as Error)?.message || err)\n }\n}\n"],
5
- "mappings": "AACA,SAAS,eAAe;AACxB,SAAS,sBAAsB;AAC/B,SAAS,yBAAyB;AAClC,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,mCAAmC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,CAAC;AAC5G,cAAU,SAAS,EAAE,yBAAyB,QAAQ,uBAAuB,EAAE,CAAC;AAChF,QAAI,8BAA8B,KAAK,WAAW,UAAU,GAAG;AAC7D,UAAI;AACF,2CAAmC,IAAI,uBAAuB;AAAA,MAChE,SAAS,KAAK;AACZ,gBAAQ,KAAK,mEAAoE,KAAe,WAAW,GAAG;AAAA,MAChH;AAAA,IACF,WAAW,8BAA8B,KAAK,CAAC,WAAW,UAAU,GAAG;AACrE,cAAQ,KAAK,sFAAsF;AAAA,IACrG;AAAA,EACF,SAAS,KAAK;AACZ,YAAQ,KAAK,gEAAiE,KAAe,WAAW,GAAG;AAAA,EAC7G;AAIA,QAAM,qBAAqB,4BAA4B;AACvD,MAAI,oBAAoB;AACtB,cAAU,SAAS,EAAE,oBAAoB,QAAQ,kBAAkB,EAAE,CAAC;AAAA,EACxE;AAGA,MAAI;AAEF,UAAM,sBAAsB,uBAAuB;AACnD,yBAAqB,WAAkB,EAAE,eAAe,oBAAoB,CAAC;AAG7E,cAAU,SAAS;AAAA,MACjB,qBAAqB,QAAQ,mBAAmB;AAAA,IAClD,CAAC;AAID,QAAI;AACF,YAAM,gBAAgB,UAAU,QAAQ,eAAe;AACvD,UAAI,iBAAiB,UAAU;AAC7B,iBAAS,0BAA0B;AAAA,UACjC;AAAA,YACE,OAAO,qBAAqB;AAAA,YAC5B,YAAY,qBAAqB;AAAA,YACjC,SAAS,6BAA6B,aAAa;AAAA,UACrD;AAAA,QACF,CAAC;AAAA,MACH;AAAA,IACF,QAAQ;AAAA,IAER;AAAA,EACF,SAAS,KAAK;AACZ,YAAQ,KAAK,8CAA+C,KAAe,WAAW,GAAG;AAAA,EAC3F;AACF;",
4
+ "sourcesContent": ["import type { AwilixContainer } from 'awilix'\nimport { asValue } from 'awilix'\nimport { createEventBus } from '@open-mercato/events/index'\nimport { setGlobalEventBus } from '@open-mercato/shared/modules/events'\nimport { createCacheService } from '@open-mercato/cache'\nimport { createKmsService } from '@open-mercato/shared/lib/encryption/kms'\nimport { TenantDataEncryptionService } from '@open-mercato/shared/lib/encryption/tenantDataEncryptionService'\nimport { registerTenantEncryptionSubscriber } from '@open-mercato/shared/lib/encryption/subscriber'\nimport { isTenantDataEncryptionEnabled } from '@open-mercato/shared/lib/encryption/toggles'\nimport { getSearchModuleConfigs } from '@open-mercato/shared/modules/search'\nimport {\n registerSearchModule,\n createSearchDeleteSubscriber,\n searchDeleteMetadata,\n} from '@open-mercato/search'\nimport { RateLimiterService } from '@open-mercato/shared/lib/ratelimit/service'\nimport { readRateLimitConfig } from '@open-mercato/shared/lib/ratelimit/config'\nimport type { EntityManager } from '@mikro-orm/postgresql'\n\n// Use globalThis to survive tsx/webpack module duplication (same pattern as container.ts DI registrars)\nconst RL_GLOBAL_KEY = '__openMercatoRateLimiterService__'\nconst RL_SHUTDOWN_KEY = '__openMercatoRateLimiterShutdown__'\n\nexport function getCachedRateLimiterService(): RateLimiterService | null {\n let service = (globalThis as any)[RL_GLOBAL_KEY] as RateLimiterService | null ?? null\n if (!service) {\n try {\n const rateLimitConfig = readRateLimitConfig()\n service = new RateLimiterService(rateLimitConfig)\n // Fire-and-forget async init (only needed for Redis strategy;\n // memory strategy works synchronously, and Redis has an in-memory\n // insurance limiter so the first few requests are still protected)\n service.initialize().catch((err) => {\n console.warn('[ratelimit] Async initialization failed:', (err as Error)?.message || err)\n })\n ;(globalThis as any)[RL_GLOBAL_KEY] = service\n\n // Register shutdown hook once to disconnect Redis on process exit\n if (!(globalThis as any)[RL_SHUTDOWN_KEY]) {\n const shutdown = () => { service?.destroy().catch(() => {}) }\n process.once('SIGTERM', shutdown)\n process.once('SIGINT', shutdown)\n ;(globalThis as any)[RL_SHUTDOWN_KEY] = true\n }\n } catch (err) {\n console.warn('[ratelimit] Failed to create rate limiter service:', (err as Error)?.message || err)\n }\n }\n return service\n}\n\nexport async function bootstrap(container: AwilixContainer) {\n // Create and register the cache service\n let cache: any\n try {\n cache = createCacheService()\n } catch (err: any) {\n console.warn('Cache service initialization failed; falling back to memory strategy:', err?.message || err)\n cache = createCacheService({ strategy: 'memory' })\n }\n container.register({ cache: asValue(cache) })\n\n // Create and register the DI-aware event bus\n let eventBus: any\n try {\n // Support both QUEUE_STRATEGY and legacy EVENTS_STRATEGY env vars\n const strategyEnv = process.env.QUEUE_STRATEGY || process.env.EVENTS_STRATEGY\n const queueStrategy = strategyEnv === 'async' || strategyEnv === 'redis' ? 'async' : 'local'\n eventBus = createEventBus({ resolve: container.resolve.bind(container) as any, queueStrategy })\n } catch (err: any) {\n // Fall back to local strategy to avoid breaking the app on misconfiguration\n console.warn('Event bus initialization failed; falling back to local strategy:', err?.message || err)\n try {\n eventBus = createEventBus({ resolve: container.resolve.bind(container) as any, queueStrategy: 'local' })\n } catch {\n // In extreme cases, provide a no-op bus to avoid crashes\n eventBus = {\n emit: async () => {},\n on: () => {},\n registerModuleSubscribers: () => {},\n clearQueue: async () => ({ removed: 0 }),\n }\n }\n }\n container.register({ eventBus: asValue(eventBus) })\n // Wire the global event bus so createModuleEvents().emit works outside DI context\n setGlobalEventBus(eventBus)\n // Auto-register discovered module subscribers\n try {\n let loadedModules: any[] = []\n try {\n const { getModules } = await import('@open-mercato/shared/lib/i18n/server')\n loadedModules = getModules()\n } catch {}\n const subs = loadedModules.flatMap((m) => m.subscribers || [])\n if (subs.length) (container.resolve as any)('eventBus').registerModuleSubscribers(subs)\n\n // Extract sync subscribers and register in the sync-subscriber-store\n const syncSubs = subs.filter((s: any) => s.sync === true)\n if (syncSubs.length) {\n try {\n const { registerSyncSubscribers } = await import('@open-mercato/shared/lib/crud/sync-subscriber-store')\n registerSyncSubscribers(\n syncSubs.map((s: any) => ({\n metadata: { event: s.event, sync: true as const, priority: s.priority, id: s.id },\n handler: s.handler,\n })),\n )\n } catch {\n // sync-subscriber-store may not be available\n }\n }\n } catch (err) {\n console.error(\"Failed to register module subscribers:\", err);\n }\n\n // KMS + tenant encryption\n const kmsService = createKmsService()\n container.register({ kmsService: asValue(kmsService) })\n try {\n const em = container.resolve('em') as EntityManager\n const cacheService = (() => {\n try { return container.resolve('cache') as any } catch { return null }\n })()\n const tenantEncryptionService = new TenantDataEncryptionService(em, { cache: cacheService, kms: kmsService })\n container.register({ tenantEncryptionService: asValue(tenantEncryptionService) })\n if (isTenantDataEncryptionEnabled() && kmsService.isHealthy()) {\n try {\n registerTenantEncryptionSubscriber(em, tenantEncryptionService)\n } catch (err) {\n console.warn('[encryption] Failed to register MikroORM encryption subscriber:', (err as Error)?.message || err)\n }\n } else if (isTenantDataEncryptionEnabled() && !kmsService.isHealthy()) {\n console.warn('[encryption] Vault/KMS unhealthy - tenant data encryption is disabled until recovery')\n }\n } catch (err) {\n console.warn('[encryption] Failed to initialize tenant encryption service:', (err as Error)?.message || err)\n }\n\n // Register rate limiter service (singleton via globalThis \u2014 reused across request containers)\n // getCachedRateLimiterService() never throws; returns null on failure\n const rateLimiterService = getCachedRateLimiterService()\n if (rateLimiterService) {\n container.register({ rateLimiterService: asValue(rateLimiterService) })\n }\n\n // Register search module\n try {\n // Get configs from global registry (registered during app bootstrap)\n const searchModuleConfigs = getSearchModuleConfigs()\n registerSearchModule(container as any, { moduleConfigs: searchModuleConfigs })\n\n // Register searchModuleConfigs in container so status API can access vector-enabled entities\n container.register({\n searchModuleConfigs: asValue(searchModuleConfigs),\n })\n\n // Register search delete event subscriber\n // Note: search.index_record is now handled by auto-discovered fulltext_upsert.ts subscriber\n try {\n const searchIndexer = container.resolve('searchIndexer') as any\n if (searchIndexer && eventBus) {\n eventBus.registerModuleSubscribers([\n {\n event: searchDeleteMetadata.event,\n persistent: searchDeleteMetadata.persistent,\n handler: createSearchDeleteSubscriber(searchIndexer),\n },\n ])\n }\n } catch {\n // searchIndexer may not be available\n }\n } catch (err) {\n console.warn('[search] Failed to register search module:', (err as Error)?.message || err)\n }\n}\n"],
5
+ "mappings": "AACA,SAAS,eAAe;AACxB,SAAS,sBAAsB;AAC/B,SAAS,yBAAyB;AAClC,SAAS,0BAA0B;A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AAO,qBAAqB;AAAA,YAC5B,YAAY,qBAAqB;AAAA,YACjC,SAAS,6BAA6B,aAAa;AAAA,UACrD;AAAA,QACF,CAAC;AAAA,MACH;AAAA,IACF,QAAQ;AAAA,IAER;AAAA,EACF,SAAS,KAAK;AACZ,YAAQ,KAAK,8CAA+C,KAAe,WAAW,GAAG;AAAA,EAC3F;AACF;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,19 @@
1
+ const id = "id";
2
+ const integration_id = "integration_id";
3
+ const credentials = "credentials";
4
+ const organization_id = "organization_id";
5
+ const tenant_id = "tenant_id";
6
+ const created_at = "created_at";
7
+ const updated_at = "updated_at";
8
+ const deleted_at = "deleted_at";
9
+ export {
10
+ created_at,
11
+ credentials,
12
+ deleted_at,
13
+ id,
14
+ integration_id,
15
+ organization_id,
16
+ tenant_id,
17
+ updated_at
18
+ };
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/integration_credentials/index.ts"],
4
+ "sourcesContent": ["export const id = 'id'\nexport const integration_id = 'integration_id'\nexport const credentials = 'credentials'\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,iBAAiB;AACvB,MAAM,cAAc;AACpB,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;",
6
+ "names": []
7
+ }
@@ -0,0 +1,27 @@
1
+ const id = "id";
2
+ const integration_id = "integration_id";
3
+ const run_id = "run_id";
4
+ const scope_entity_type = "scope_entity_type";
5
+ const scope_entity_id = "scope_entity_id";
6
+ const level = "level";
7
+ const message = "message";
8
+ const code = "code";
9
+ const payload = "payload";
10
+ const organization_id = "organization_id";
11
+ const tenant_id = "tenant_id";
12
+ const created_at = "created_at";
13
+ export {
14
+ code,
15
+ created_at,
16
+ id,
17
+ integration_id,
18
+ level,
19
+ message,
20
+ organization_id,
21
+ payload,
22
+ run_id,
23
+ scope_entity_id,
24
+ scope_entity_type,
25
+ tenant_id
26
+ };
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/integration_log/index.ts"],
4
+ "sourcesContent": ["export const id = 'id'\nexport const integration_id = 'integration_id'\nexport const run_id = 'run_id'\nexport const scope_entity_type = 'scope_entity_type'\nexport const scope_entity_id = 'scope_entity_id'\nexport const level = 'level'\nexport const message = 'message'\nexport const code = 'code'\nexport const payload = 'payload'\nexport const organization_id = 'organization_id'\nexport const tenant_id = 'tenant_id'\nexport const created_at = 'created_at'\n"],
5
+ "mappings": "AAAO,MAAM,KAAK;AACX,MAAM,iBAAiB;AACvB,MAAM,SAAS;AACf,MAAM,oBAAoB;AAC1B,MAAM,kBAAkB;AACxB,MAAM,QAAQ;AACd,MAAM,UAAU;AAChB,MAAM,OAAO;AACb,MAAM,UAAU;AAChB,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,aAAa;",
6
+ "names": []
7
+ }
@@ -0,0 +1,27 @@
1
+ const id = "id";
2
+ const integration_id = "integration_id";
3
+ const is_enabled = "is_enabled";
4
+ const api_version = "api_version";
5
+ const reauth_required = "reauth_required";
6
+ const last_health_status = "last_health_status";
7
+ const last_health_checked_at = "last_health_checked_at";
8
+ const organization_id = "organization_id";
9
+ const tenant_id = "tenant_id";
10
+ const created_at = "created_at";
11
+ const updated_at = "updated_at";
12
+ const deleted_at = "deleted_at";
13
+ export {
14
+ api_version,
15
+ created_at,
16
+ deleted_at,
17
+ id,
18
+ integration_id,
19
+ is_enabled,
20
+ last_health_checked_at,
21
+ last_health_status,
22
+ organization_id,
23
+ reauth_required,
24
+ tenant_id,
25
+ updated_at
26
+ };
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/integration_state/index.ts"],
4
+ "sourcesContent": ["export const id = 'id'\nexport const integration_id = 'integration_id'\nexport const is_enabled = 'is_enabled'\nexport const api_version = 'api_version'\nexport const reauth_required = 'reauth_required'\nexport const last_health_status = 'last_health_status'\nexport const last_health_checked_at = 'last_health_checked_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,iBAAiB;AACvB,MAAM,aAAa;AACnB,MAAM,cAAc;AACpB,MAAM,kBAAkB;AACxB,MAAM,qBAAqB;AAC3B,MAAM,yBAAyB;AAC/B,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;",
6
+ "names": []
7
+ }
@@ -0,0 +1,19 @@
1
+ const id = "id";
2
+ const integration_id = "integration_id";
3
+ const entity_type = "entity_type";
4
+ const direction = "direction";
5
+ const cursor = "cursor";
6
+ const organization_id = "organization_id";
7
+ const tenant_id = "tenant_id";
8
+ const updated_at = "updated_at";
9
+ export {
10
+ cursor,
11
+ direction,
12
+ entity_type,
13
+ id,
14
+ integration_id,
15
+ organization_id,
16
+ tenant_id,
17
+ updated_at
18
+ };
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/sync_cursor/index.ts"],
4
+ "sourcesContent": ["export const id = 'id'\nexport const integration_id = 'integration_id'\nexport const entity_type = 'entity_type'\nexport const direction = 'direction'\nexport const cursor = 'cursor'\nexport const organization_id = 'organization_id'\nexport const tenant_id = 'tenant_id'\nexport const updated_at = 'updated_at'\n"],
5
+ "mappings": "AAAO,MAAM,KAAK;AACX,MAAM,iBAAiB;AACvB,MAAM,cAAc;AACpB,MAAM,YAAY;AAClB,MAAM,SAAS;AACf,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,aAAa;",
6
+ "names": []
7
+ }
@@ -0,0 +1,27 @@
1
+ const id = "id";
2
+ const integration_id = "integration_id";
3
+ const internal_entity_type = "internal_entity_type";
4
+ const internal_entity_id = "internal_entity_id";
5
+ const external_id = "external_id";
6
+ const sync_status = "sync_status";
7
+ const last_synced_at = "last_synced_at";
8
+ const organization_id = "organization_id";
9
+ const tenant_id = "tenant_id";
10
+ const created_at = "created_at";
11
+ const updated_at = "updated_at";
12
+ const deleted_at = "deleted_at";
13
+ export {
14
+ created_at,
15
+ deleted_at,
16
+ external_id,
17
+ id,
18
+ integration_id,
19
+ internal_entity_id,
20
+ internal_entity_type,
21
+ last_synced_at,
22
+ organization_id,
23
+ sync_status,
24
+ tenant_id,
25
+ updated_at
26
+ };
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/sync_external_id_mapping/index.ts"],
4
+ "sourcesContent": ["export const id = 'id'\nexport const integration_id = 'integration_id'\nexport const internal_entity_type = 'internal_entity_type'\nexport const internal_entity_id = 'internal_entity_id'\nexport const external_id = 'external_id'\nexport const sync_status = 'sync_status'\nexport const last_synced_at = 'last_synced_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,iBAAiB;AACvB,MAAM,uBAAuB;AAC7B,MAAM,qBAAqB;AAC3B,MAAM,cAAc;AACpB,MAAM,cAAc;AACpB,MAAM,iBAAiB;AACvB,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;",
6
+ "names": []
7
+ }
@@ -0,0 +1,19 @@
1
+ const id = "id";
2
+ const integration_id = "integration_id";
3
+ const entity_type = "entity_type";
4
+ const mapping = "mapping";
5
+ const organization_id = "organization_id";
6
+ const tenant_id = "tenant_id";
7
+ const created_at = "created_at";
8
+ const updated_at = "updated_at";
9
+ export {
10
+ created_at,
11
+ entity_type,
12
+ id,
13
+ integration_id,
14
+ mapping,
15
+ organization_id,
16
+ tenant_id,
17
+ updated_at
18
+ };
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/sync_mapping/index.ts"],
4
+ "sourcesContent": ["export const id = 'id'\nexport const integration_id = 'integration_id'\nexport const entity_type = 'entity_type'\nexport const mapping = 'mapping'\nexport const organization_id = 'organization_id'\nexport const tenant_id = 'tenant_id'\nexport const created_at = 'created_at'\nexport const updated_at = 'updated_at'\n"],
5
+ "mappings": "AAAO,MAAM,KAAK;AACX,MAAM,iBAAiB;AACvB,MAAM,cAAc;AACpB,MAAM,UAAU;AAChB,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,aAAa;",
6
+ "names": []
7
+ }
@@ -0,0 +1,45 @@
1
+ const id = "id";
2
+ const integration_id = "integration_id";
3
+ const entity_type = "entity_type";
4
+ const direction = "direction";
5
+ const status = "status";
6
+ const cursor = "cursor";
7
+ const initial_cursor = "initial_cursor";
8
+ const created_count = "created_count";
9
+ const updated_count = "updated_count";
10
+ const skipped_count = "skipped_count";
11
+ const failed_count = "failed_count";
12
+ const batches_completed = "batches_completed";
13
+ const last_error = "last_error";
14
+ const progress_job_id = "progress_job_id";
15
+ const job_id = "job_id";
16
+ const triggered_by = "triggered_by";
17
+ const organization_id = "organization_id";
18
+ const tenant_id = "tenant_id";
19
+ const created_at = "created_at";
20
+ const updated_at = "updated_at";
21
+ const deleted_at = "deleted_at";
22
+ export {
23
+ batches_completed,
24
+ created_at,
25
+ created_count,
26
+ cursor,
27
+ deleted_at,
28
+ direction,
29
+ entity_type,
30
+ failed_count,
31
+ id,
32
+ initial_cursor,
33
+ integration_id,
34
+ job_id,
35
+ last_error,
36
+ organization_id,
37
+ progress_job_id,
38
+ skipped_count,
39
+ status,
40
+ tenant_id,
41
+ triggered_by,
42
+ updated_at,
43
+ updated_count
44
+ };
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/sync_run/index.ts"],
4
+ "sourcesContent": ["export const id = 'id'\nexport const integration_id = 'integration_id'\nexport const entity_type = 'entity_type'\nexport const direction = 'direction'\nexport const status = 'status'\nexport const cursor = 'cursor'\nexport const initial_cursor = 'initial_cursor'\nexport const created_count = 'created_count'\nexport const updated_count = 'updated_count'\nexport const skipped_count = 'skipped_count'\nexport const failed_count = 'failed_count'\nexport const batches_completed = 'batches_completed'\nexport const last_error = 'last_error'\nexport const progress_job_id = 'progress_job_id'\nexport const job_id = 'job_id'\nexport const triggered_by = 'triggered_by'\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,iBAAiB;AACvB,MAAM,cAAc;AACpB,MAAM,YAAY;AAClB,MAAM,SAAS;AACf,MAAM,SAAS;AACf,MAAM,iBAAiB;AACvB,MAAM,gBAAgB;AACtB,MAAM,gBAAgB;AACtB,MAAM,gBAAgB;AACtB,MAAM,eAAe;AACrB,MAAM,oBAAoB;AAC1B,MAAM,aAAa;AACnB,MAAM,kBAAkB;AACxB,MAAM,SAAS;AACf,MAAM,eAAe;AACrB,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;",
6
+ "names": []
7
+ }
@@ -0,0 +1,35 @@
1
+ const id = "id";
2
+ const integration_id = "integration_id";
3
+ const entity_type = "entity_type";
4
+ const direction = "direction";
5
+ const schedule_type = "schedule_type";
6
+ const schedule_value = "schedule_value";
7
+ const timezone = "timezone";
8
+ const full_sync = "full_sync";
9
+ const is_enabled = "is_enabled";
10
+ const scheduled_job_id = "scheduled_job_id";
11
+ const last_run_at = "last_run_at";
12
+ const organization_id = "organization_id";
13
+ const tenant_id = "tenant_id";
14
+ const created_at = "created_at";
15
+ const updated_at = "updated_at";
16
+ const deleted_at = "deleted_at";
17
+ export {
18
+ created_at,
19
+ deleted_at,
20
+ direction,
21
+ entity_type,
22
+ full_sync,
23
+ id,
24
+ integration_id,
25
+ is_enabled,
26
+ last_run_at,
27
+ organization_id,
28
+ schedule_type,
29
+ schedule_value,
30
+ scheduled_job_id,
31
+ tenant_id,
32
+ timezone,
33
+ updated_at
34
+ };
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/sync_schedule/index.ts"],
4
+ "sourcesContent": ["export const id = 'id'\nexport const integration_id = 'integration_id'\nexport const entity_type = 'entity_type'\nexport const direction = 'direction'\nexport const schedule_type = 'schedule_type'\nexport const schedule_value = 'schedule_value'\nexport const timezone = 'timezone'\nexport const full_sync = 'full_sync'\nexport const is_enabled = 'is_enabled'\nexport const scheduled_job_id = 'scheduled_job_id'\nexport const last_run_at = 'last_run_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,iBAAiB;AACvB,MAAM,cAAc;AACpB,MAAM,YAAY;AAClB,MAAM,gBAAgB;AACtB,MAAM,iBAAiB;AACvB,MAAM,WAAW;AACjB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,mBAAmB;AACzB,MAAM,cAAc;AACpB,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;",
6
+ "names": []
7
+ }
@@ -23,6 +23,8 @@ const M = {
23
23
  "staff": "staff",
24
24
  "notifications": "notifications",
25
25
  "progress": "progress",
26
+ "integrations": "integrations",
27
+ "data_sync": "data_sync",
26
28
  "messages": "messages",
27
29
  "translations": "translations",
28
30
  "inbox_ops": "inbox_ops"
@@ -197,6 +199,18 @@ const E = {
197
199
  "progress": {
198
200
  "progress_job": "progress:progress_job"
199
201
  },
202
+ "integrations": {
203
+ "sync_external_id_mapping": "integrations:sync_external_id_mapping",
204
+ "integration_credentials": "integrations:integration_credentials",
205
+ "integration_state": "integrations:integration_state",
206
+ "integration_log": "integrations:integration_log"
207
+ },
208
+ "data_sync": {
209
+ "sync_run": "data_sync:sync_run",
210
+ "sync_cursor": "data_sync:sync_cursor",
211
+ "sync_mapping": "data_sync:sync_mapping",
212
+ "sync_schedule": "data_sync:sync_schedule"
213
+ },
200
214
  "messages": {
201
215
  "message": "messages:message",
202
216
  "message_recipient": "messages:message_recipient",
@@ -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 \"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 \"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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gB;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} 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;A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AAA,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;",
6
6
  "names": []
7
7
  }
@@ -59,6 +59,9 @@ import * as inbox_proposal_action from "./entities/inbox_proposal_action/index.j
59
59
  import * as inbox_settings from "./entities/inbox_settings/index.js";
60
60
  import * as indexer_error_log from "./entities/indexer_error_log/index.js";
61
61
  import * as indexer_status_log from "./entities/indexer_status_log/index.js";
62
+ import * as integration_credentials from "./entities/integration_credentials/index.js";
63
+ import * as integration_log from "./entities/integration_log/index.js";
64
+ import * as integration_state from "./entities/integration_state/index.js";
62
65
  import * as message from "./entities/message/index.js";
63
66
  import * as message_access_token from "./entities/message_access_token/index.js";
64
67
  import * as message_confirmation from "./entities/message_confirmation/index.js";
@@ -121,6 +124,11 @@ import * as staff_team_member_comment from "./entities/staff_team_member_comment
121
124
  import * as staff_team_member_job_history from "./entities/staff_team_member_job_history/index.js";
122
125
  import * as staff_team_role from "./entities/staff_team_role/index.js";
123
126
  import * as step_instance from "./entities/step_instance/index.js";
127
+ import * as sync_cursor from "./entities/sync_cursor/index.js";
128
+ import * as sync_external_id_mapping from "./entities/sync_external_id_mapping/index.js";
129
+ import * as sync_mapping from "./entities/sync_mapping/index.js";
130
+ import * as sync_run from "./entities/sync_run/index.js";
131
+ import * as sync_schedule from "./entities/sync_schedule/index.js";
124
132
  import * as tenant from "./entities/tenant/index.js";
125
133
  import * as upgrade_action_run from "./entities/upgrade_action_run/index.js";
126
134
  import * as user from "./entities/user/index.js";
@@ -194,6 +202,9 @@ const entityFieldsRegistry = {
194
202
  inbox_settings,
195
203
  indexer_error_log,
196
204
  indexer_status_log,
205
+ integration_credentials,
206
+ integration_log,
207
+ integration_state,
197
208
  message,
198
209
  message_access_token,
199
210
  message_confirmation,
@@ -256,6 +267,11 @@ const entityFieldsRegistry = {
256
267
  staff_team_member_job_history,
257
268
  staff_team_role,
258
269
  step_instance,
270
+ sync_cursor,
271
+ sync_external_id_mapping,
272
+ sync_mapping,
273
+ sync_run,
274
+ sync_schedule,
259
275
  tenant,
260
276
  upgrade_action_run,
261
277
  user,