@open-mercato/core 0.6.7-develop.6795.1.8a3f27921c → 0.6.7-develop.6814.1.0627c7e9f1

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 (213) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/dist/generated/entities/customer_deal_person_link/index.js +2 -0
  3. package/dist/generated/entities/customer_deal_person_link/index.js.map +2 -2
  4. package/dist/generated/entities/customer_user_invitation/index.js +2 -0
  5. package/dist/generated/entities/customer_user_invitation/index.js.map +2 -2
  6. package/dist/generated/entity-fields-registry.js +2 -0
  7. package/dist/generated/entity-fields-registry.js.map +2 -2
  8. package/dist/modules/business_rules/api/openmercato-call-options/route.js +85 -0
  9. package/dist/modules/business_rules/api/openmercato-call-options/route.js.map +7 -0
  10. package/dist/modules/business_rules/api/rules/route.js +71 -4
  11. package/dist/modules/business_rules/api/rules/route.js.map +2 -2
  12. package/dist/modules/business_rules/components/ActionBuilder.js +47 -4
  13. package/dist/modules/business_rules/components/ActionBuilder.js.map +3 -3
  14. package/dist/modules/business_rules/components/ActionRow.js +106 -16
  15. package/dist/modules/business_rules/components/ActionRow.js.map +2 -2
  16. package/dist/modules/business_rules/components/utils/actionValidation.js +6 -0
  17. package/dist/modules/business_rules/components/utils/actionValidation.js.map +2 -2
  18. package/dist/modules/business_rules/lib/action-executor.js +148 -0
  19. package/dist/modules/business_rules/lib/action-executor.js.map +2 -2
  20. package/dist/modules/business_rules/lib/openmercato-call-options-types.js +5 -0
  21. package/dist/modules/business_rules/lib/openmercato-call-options-types.js.map +7 -0
  22. package/dist/modules/business_rules/lib/openmercato-call-options.js +231 -0
  23. package/dist/modules/business_rules/lib/openmercato-call-options.js.map +7 -0
  24. package/dist/modules/business_rules/lib/rule-engine.js +5 -1
  25. package/dist/modules/business_rules/lib/rule-engine.js.map +2 -2
  26. package/dist/modules/communication_channels/api/post/webhook/[provider]/route.js +11 -1
  27. package/dist/modules/communication_channels/api/post/webhook/[provider]/route.js.map +2 -2
  28. package/dist/modules/communication_channels/api/post/webhooks/gmail/route.js +11 -6
  29. package/dist/modules/communication_channels/api/post/webhooks/gmail/route.js.map +2 -2
  30. package/dist/modules/configs/lib/upgrade-actions.js +12 -0
  31. package/dist/modules/configs/lib/upgrade-actions.js.map +2 -2
  32. package/dist/modules/customer_accounts/api/admin/users/[id].js +10 -1
  33. package/dist/modules/customer_accounts/api/admin/users/[id].js.map +2 -2
  34. package/dist/modules/customer_accounts/api/admin/users-invite.js +61 -4
  35. package/dist/modules/customer_accounts/api/admin/users-invite.js.map +2 -2
  36. package/dist/modules/customer_accounts/api/portal/users-invite.js +20 -2
  37. package/dist/modules/customer_accounts/api/portal/users-invite.js.map +2 -2
  38. package/dist/modules/customer_accounts/data/entities.js +3 -0
  39. package/dist/modules/customer_accounts/data/entities.js.map +2 -2
  40. package/dist/modules/customer_accounts/data/validators.js +1 -0
  41. package/dist/modules/customer_accounts/data/validators.js.map +2 -2
  42. package/dist/modules/customer_accounts/emails/CustomerInvitationEmail.js +26 -0
  43. package/dist/modules/customer_accounts/emails/CustomerInvitationEmail.js.map +7 -0
  44. package/dist/modules/customer_accounts/lib/customerEntityOwnership.js +29 -3
  45. package/dist/modules/customer_accounts/lib/customerEntityOwnership.js.map +2 -2
  46. package/dist/modules/customer_accounts/lib/customerUrl.js +19 -10
  47. package/dist/modules/customer_accounts/lib/customerUrl.js.map +2 -2
  48. package/dist/modules/customer_accounts/lib/invitationEmail.js +35 -0
  49. package/dist/modules/customer_accounts/lib/invitationEmail.js.map +7 -0
  50. package/dist/modules/customer_accounts/migrations/Migration20260723120000_customer_accounts.js +13 -0
  51. package/dist/modules/customer_accounts/migrations/Migration20260723120000_customer_accounts.js.map +7 -0
  52. package/dist/modules/customer_accounts/services/customerInvitationService.js +32 -2
  53. package/dist/modules/customer_accounts/services/customerInvitationService.js.map +2 -2
  54. package/dist/modules/customer_accounts/subscribers/autoLinkCrm.js +47 -7
  55. package/dist/modules/customer_accounts/subscribers/autoLinkCrm.js.map +2 -2
  56. package/dist/modules/customer_accounts/widgets/injection/account-status/widget.client.js +2 -2
  57. package/dist/modules/customer_accounts/widgets/injection/account-status/widget.client.js.map +2 -2
  58. package/dist/modules/customer_accounts/widgets/injection-table.js +1 -1
  59. package/dist/modules/customer_accounts/widgets/injection-table.js.map +2 -2
  60. package/dist/modules/customers/api/deals/[id]/people/route.js +4 -2
  61. package/dist/modules/customers/api/deals/[id]/people/route.js.map +2 -2
  62. package/dist/modules/customers/api/deals/[id]/route.js +7 -3
  63. package/dist/modules/customers/api/deals/[id]/route.js.map +2 -2
  64. package/dist/modules/customers/backend/customers/companies-v2/[id]/page.js +11 -1
  65. package/dist/modules/customers/backend/customers/companies-v2/[id]/page.js.map +2 -2
  66. package/dist/modules/customers/backend/customers/deals/[id]/page.js +14 -8
  67. package/dist/modules/customers/backend/customers/deals/[id]/page.js.map +2 -2
  68. package/dist/modules/customers/backend/customers/people-v2/[id]/page.js +21 -6
  69. package/dist/modules/customers/backend/customers/people-v2/[id]/page.js.map +2 -2
  70. package/dist/modules/customers/commands/deals.js +48 -10
  71. package/dist/modules/customers/commands/deals.js.map +2 -2
  72. package/dist/modules/customers/commands/people.js +2 -0
  73. package/dist/modules/customers/commands/people.js.map +2 -2
  74. package/dist/modules/customers/components/detail/CompanyDetailTabs.js +26 -6
  75. package/dist/modules/customers/components/detail/CompanyDetailTabs.js.map +2 -2
  76. package/dist/modules/customers/components/detail/DealDetailTabs.js +30 -8
  77. package/dist/modules/customers/components/detail/DealDetailTabs.js.map +2 -2
  78. package/dist/modules/customers/components/detail/PersonDetailTabs.js +30 -8
  79. package/dist/modules/customers/components/detail/PersonDetailTabs.js.map +2 -2
  80. package/dist/modules/customers/data/entities.js +8 -0
  81. package/dist/modules/customers/data/entities.js.map +2 -2
  82. package/dist/modules/customers/data/validators.js +2 -1
  83. package/dist/modules/customers/data/validators.js.map +2 -2
  84. package/dist/modules/customers/migrations/Migration20260723210000_customers.js +15 -0
  85. package/dist/modules/customers/migrations/Migration20260723210000_customers.js.map +7 -0
  86. package/dist/modules/entities/api/entity-settings.js +59 -9
  87. package/dist/modules/entities/api/entity-settings.js.map +2 -2
  88. package/dist/modules/entities/backend/config/settings/page.js +10 -0
  89. package/dist/modules/entities/backend/config/settings/page.js.map +7 -0
  90. package/dist/modules/entities/backend/config/settings/page.meta.js +36 -0
  91. package/dist/modules/entities/backend/config/settings/page.meta.js.map +7 -0
  92. package/dist/modules/entities/backend/entities/user/create/page.js +16 -7
  93. package/dist/modules/entities/backend/entities/user/create/page.js.map +2 -2
  94. package/dist/modules/entities/components/EntitySettingsManager.js +136 -0
  95. package/dist/modules/entities/components/EntitySettingsManager.js.map +7 -0
  96. package/dist/modules/inbox_ops/api/webhook/inbound.js +14 -10
  97. package/dist/modules/inbox_ops/api/webhook/inbound.js.map +2 -2
  98. package/dist/modules/payment_gateways/api/webhook/[provider]/route.js +11 -1
  99. package/dist/modules/payment_gateways/api/webhook/[provider]/route.js.map +2 -2
  100. package/dist/modules/payment_gateways/data/entities.js +4 -0
  101. package/dist/modules/payment_gateways/data/entities.js.map +2 -2
  102. package/dist/modules/payment_gateways/lib/gateway-service.js +12 -2
  103. package/dist/modules/payment_gateways/lib/gateway-service.js.map +2 -2
  104. package/dist/modules/payment_gateways/lib/session-idempotency.js +33 -0
  105. package/dist/modules/payment_gateways/lib/session-idempotency.js.map +2 -2
  106. package/dist/modules/payment_gateways/migrations/Migration20260803103035_payment_gateways.js +18 -0
  107. package/dist/modules/payment_gateways/migrations/Migration20260803103035_payment_gateways.js.map +7 -0
  108. package/dist/modules/payment_gateways/setup.js +47 -0
  109. package/dist/modules/payment_gateways/setup.js.map +2 -2
  110. package/dist/modules/payment_gateways/workers/session-initialization-prune.js +50 -0
  111. package/dist/modules/payment_gateways/workers/session-initialization-prune.js.map +7 -0
  112. package/dist/modules/portal/frontend/[orgSlug]/portal/invite/page.js +134 -0
  113. package/dist/modules/portal/frontend/[orgSlug]/portal/invite/page.js.map +7 -0
  114. package/dist/modules/portal/frontend/[orgSlug]/portal/invite/page.meta.js +11 -0
  115. package/dist/modules/portal/frontend/[orgSlug]/portal/invite/page.meta.js.map +7 -0
  116. package/dist/modules/portal/lib/navigation.js +7 -0
  117. package/dist/modules/portal/lib/navigation.js.map +7 -0
  118. package/dist/modules/query_index/lib/engine.js +43 -0
  119. package/dist/modules/query_index/lib/engine.js.map +2 -2
  120. package/dist/modules/query_index/lib/search-tokens.js +15 -5
  121. package/dist/modules/query_index/lib/search-tokens.js.map +2 -2
  122. package/dist/modules/shipping_carriers/api/webhook/[provider]/route.js +11 -1
  123. package/dist/modules/shipping_carriers/api/webhook/[provider]/route.js.map +2 -2
  124. package/generated/entities/customer_deal_person_link/index.ts +1 -0
  125. package/generated/entities/customer_user_invitation/index.ts +1 -0
  126. package/generated/entity-fields-registry.ts +2 -0
  127. package/package.json +7 -7
  128. package/src/modules/business_rules/api/openmercato-call-options/route.ts +94 -0
  129. package/src/modules/business_rules/api/rules/route.ts +92 -4
  130. package/src/modules/business_rules/components/ActionBuilder.tsx +54 -5
  131. package/src/modules/business_rules/components/ActionRow.tsx +156 -18
  132. package/src/modules/business_rules/components/utils/actionValidation.ts +6 -0
  133. package/src/modules/business_rules/i18n/de.json +12 -0
  134. package/src/modules/business_rules/i18n/en.json +12 -0
  135. package/src/modules/business_rules/i18n/es.json +12 -0
  136. package/src/modules/business_rules/i18n/pl.json +12 -0
  137. package/src/modules/business_rules/lib/action-executor.ts +198 -0
  138. package/src/modules/business_rules/lib/openmercato-call-options-types.ts +31 -0
  139. package/src/modules/business_rules/lib/openmercato-call-options.ts +297 -0
  140. package/src/modules/business_rules/lib/rule-engine.ts +4 -0
  141. package/src/modules/communication_channels/api/post/webhook/[provider]/route.ts +11 -1
  142. package/src/modules/communication_channels/api/post/webhooks/gmail/route.ts +17 -11
  143. package/src/modules/configs/lib/upgrade-actions.ts +14 -0
  144. package/src/modules/customer_accounts/api/admin/users/[id].ts +16 -1
  145. package/src/modules/customer_accounts/api/admin/users-invite.ts +78 -3
  146. package/src/modules/customer_accounts/api/portal/users-invite.ts +22 -1
  147. package/src/modules/customer_accounts/data/entities.ts +3 -0
  148. package/src/modules/customer_accounts/data/validators.ts +1 -0
  149. package/src/modules/customer_accounts/emails/CustomerInvitationEmail.tsx +45 -0
  150. package/src/modules/customer_accounts/i18n/de.json +6 -0
  151. package/src/modules/customer_accounts/i18n/en.json +6 -0
  152. package/src/modules/customer_accounts/i18n/es.json +6 -0
  153. package/src/modules/customer_accounts/i18n/pl.json +6 -0
  154. package/src/modules/customer_accounts/lib/customerEntityOwnership.ts +68 -2
  155. package/src/modules/customer_accounts/lib/customerUrl.ts +27 -11
  156. package/src/modules/customer_accounts/lib/invitationEmail.ts +42 -0
  157. package/src/modules/customer_accounts/migrations/.snapshot-open-mercato.json +16 -0
  158. package/src/modules/customer_accounts/migrations/Migration20260723120000_customer_accounts.ts +13 -0
  159. package/src/modules/customer_accounts/services/customerInvitationService.ts +56 -3
  160. package/src/modules/customer_accounts/subscribers/autoLinkCrm.ts +75 -8
  161. package/src/modules/customer_accounts/widgets/injection/account-status/widget.client.tsx +2 -2
  162. package/src/modules/customer_accounts/widgets/injection-table.ts +4 -1
  163. package/src/modules/customers/api/deals/[id]/people/route.ts +3 -0
  164. package/src/modules/customers/api/deals/[id]/route.ts +10 -2
  165. package/src/modules/customers/backend/customers/companies-v2/[id]/page.tsx +12 -1
  166. package/src/modules/customers/backend/customers/deals/[id]/hooks/types.ts +1 -0
  167. package/src/modules/customers/backend/customers/deals/[id]/page.tsx +15 -9
  168. package/src/modules/customers/backend/customers/people-v2/[id]/page.tsx +24 -6
  169. package/src/modules/customers/commands/deals.ts +50 -9
  170. package/src/modules/customers/commands/people.ts +3 -0
  171. package/src/modules/customers/components/detail/CompanyDetailTabs.tsx +30 -7
  172. package/src/modules/customers/components/detail/DealDetailTabs.tsx +34 -9
  173. package/src/modules/customers/components/detail/PersonDetailTabs.tsx +34 -9
  174. package/src/modules/customers/data/entities.ts +9 -1
  175. package/src/modules/customers/data/validators.ts +1 -0
  176. package/src/modules/customers/i18n/de.json +1 -0
  177. package/src/modules/customers/i18n/en.json +1 -0
  178. package/src/modules/customers/i18n/es.json +1 -0
  179. package/src/modules/customers/i18n/pl.json +1 -0
  180. package/src/modules/customers/migrations/.snapshot-open-mercato.json +27 -1
  181. package/src/modules/customers/migrations/Migration20260723210000_customers.ts +15 -0
  182. package/src/modules/entities/api/entity-settings.ts +66 -22
  183. package/src/modules/entities/backend/config/settings/page.meta.ts +34 -0
  184. package/src/modules/entities/backend/config/settings/page.tsx +12 -0
  185. package/src/modules/entities/backend/entities/user/create/page.tsx +16 -7
  186. package/src/modules/entities/components/EntitySettingsManager.tsx +160 -0
  187. package/src/modules/entities/i18n/de.json +9 -0
  188. package/src/modules/entities/i18n/en.json +9 -0
  189. package/src/modules/entities/i18n/es.json +9 -0
  190. package/src/modules/entities/i18n/pl.json +9 -0
  191. package/src/modules/inbox_ops/api/webhook/inbound.ts +14 -12
  192. package/src/modules/payment_gateways/api/webhook/[provider]/route.ts +13 -1
  193. package/src/modules/payment_gateways/data/entities.ts +5 -0
  194. package/src/modules/payment_gateways/i18n/de.json +5 -1
  195. package/src/modules/payment_gateways/i18n/en.json +5 -1
  196. package/src/modules/payment_gateways/i18n/es.json +5 -1
  197. package/src/modules/payment_gateways/i18n/pl.json +5 -1
  198. package/src/modules/payment_gateways/lib/gateway-service.ts +12 -2
  199. package/src/modules/payment_gateways/lib/session-idempotency.ts +36 -0
  200. package/src/modules/payment_gateways/migrations/.snapshot-open-mercato.json +10 -1
  201. package/src/modules/payment_gateways/migrations/Migration20260803103035_payment_gateways.ts +17 -0
  202. package/src/modules/payment_gateways/setup.ts +62 -0
  203. package/src/modules/payment_gateways/workers/session-initialization-prune.ts +63 -0
  204. package/src/modules/portal/frontend/[orgSlug]/portal/invite/page.meta.ts +9 -0
  205. package/src/modules/portal/frontend/[orgSlug]/portal/invite/page.tsx +164 -0
  206. package/src/modules/portal/i18n/de.json +18 -0
  207. package/src/modules/portal/i18n/en.json +18 -0
  208. package/src/modules/portal/i18n/es.json +18 -0
  209. package/src/modules/portal/i18n/pl.json +18 -0
  210. package/src/modules/portal/lib/navigation.ts +3 -0
  211. package/src/modules/query_index/lib/engine.ts +52 -0
  212. package/src/modules/query_index/lib/search-tokens.ts +16 -4
  213. package/src/modules/shipping_carriers/api/webhook/[provider]/route.ts +11 -1
@@ -1,4 +1,4 @@
1
- [build:core] found 3763 entry points
1
+ [build:core] found 3782 entry points
2
2
  [build:core] built successfully
3
3
  [build:core:generated] found 197 entry points
4
4
  [build:core:generated] built successfully
@@ -1,5 +1,6 @@
1
1
  const id = "id";
2
2
  const role = "role";
3
+ const is_primary = "is_primary";
3
4
  const created_at = "created_at";
4
5
  const deal = "deal";
5
6
  const person = "person";
@@ -7,6 +8,7 @@ export {
7
8
  created_at,
8
9
  deal,
9
10
  id,
11
+ is_primary,
10
12
  person,
11
13
  role
12
14
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../generated/entities/customer_deal_person_link/index.ts"],
4
- "sourcesContent": ["export const id = \"id\";\nexport const role = \"role\";\nexport const created_at = \"created_at\";\nexport const deal = \"deal\";\nexport const person = \"person\";\n"],
5
- "mappings": "AAAO,MAAM,KAAK;AACX,MAAM,OAAO;AACb,MAAM,aAAa;AACnB,MAAM,OAAO;AACb,MAAM,SAAS;",
4
+ "sourcesContent": ["export const id = \"id\";\nexport const role = \"role\";\nexport const is_primary = \"is_primary\";\nexport const created_at = \"created_at\";\nexport const deal = \"deal\";\nexport const person = \"person\";\n"],
5
+ "mappings": "AAAO,MAAM,KAAK;AACX,MAAM,OAAO;AACb,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,OAAO;AACb,MAAM,SAAS;",
6
6
  "names": []
7
7
  }
@@ -5,6 +5,7 @@ const email = "email";
5
5
  const email_hash = "email_hash";
6
6
  const token = "token";
7
7
  const customer_entity_id = "customer_entity_id";
8
+ const person_entity_id = "person_entity_id";
8
9
  const role_ids_json = "role_ids_json";
9
10
  const invited_by_user_id = "invited_by_user_id";
10
11
  const invited_by_customer_user_id = "invited_by_customer_user_id";
@@ -26,6 +27,7 @@ export {
26
27
  invited_by_customer_user_id,
27
28
  invited_by_user_id,
28
29
  organization_id,
30
+ person_entity_id,
29
31
  role_ids_json,
30
32
  tenant_id,
31
33
  token
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../generated/entities/customer_user_invitation/index.ts"],
4
- "sourcesContent": ["export const id = \"id\";\nexport const tenant_id = \"tenant_id\";\nexport const organization_id = \"organization_id\";\nexport const email = \"email\";\nexport const email_hash = \"email_hash\";\nexport const token = \"token\";\nexport const customer_entity_id = \"customer_entity_id\";\nexport const role_ids_json = \"role_ids_json\";\nexport const invited_by_user_id = \"invited_by_user_id\";\nexport const invited_by_customer_user_id = \"invited_by_customer_user_id\";\nexport const display_name = \"display_name\";\nexport const expires_at = \"expires_at\";\nexport const accepted_at = \"accepted_at\";\nexport const cancelled_at = \"cancelled_at\";\nexport const created_at = \"created_at\";\n"],
5
- "mappings": "AAAO,MAAM,KAAK;AACX,MAAM,YAAY;AAClB,MAAM,kBAAkB;AACxB,MAAM,QAAQ;AACd,MAAM,aAAa;AACnB,MAAM,QAAQ;AACd,MAAM,qBAAqB;AAC3B,MAAM,gBAAgB;AACtB,MAAM,qBAAqB;AAC3B,MAAM,8BAA8B;AACpC,MAAM,eAAe;AACrB,MAAM,aAAa;AACnB,MAAM,cAAc;AACpB,MAAM,eAAe;AACrB,MAAM,aAAa;",
4
+ "sourcesContent": ["export const id = \"id\";\nexport const tenant_id = \"tenant_id\";\nexport const organization_id = \"organization_id\";\nexport const email = \"email\";\nexport const email_hash = \"email_hash\";\nexport const token = \"token\";\nexport const customer_entity_id = \"customer_entity_id\";\nexport const person_entity_id = \"person_entity_id\";\nexport const role_ids_json = \"role_ids_json\";\nexport const invited_by_user_id = \"invited_by_user_id\";\nexport const invited_by_customer_user_id = \"invited_by_customer_user_id\";\nexport const display_name = \"display_name\";\nexport const expires_at = \"expires_at\";\nexport const accepted_at = \"accepted_at\";\nexport const cancelled_at = \"cancelled_at\";\nexport const created_at = \"created_at\";\n"],
5
+ "mappings": "AAAO,MAAM,KAAK;AACX,MAAM,YAAY;AAClB,MAAM,kBAAkB;AACxB,MAAM,QAAQ;AACd,MAAM,aAAa;AACnB,MAAM,QAAQ;AACd,MAAM,qBAAqB;AAC3B,MAAM,mBAAmB;AACzB,MAAM,gBAAgB;AACtB,MAAM,qBAAqB;AAC3B,MAAM,8BAA8B;AACpC,MAAM,eAAe;AACrB,MAAM,aAAa;AACnB,MAAM,cAAc;AACpB,MAAM,eAAe;AACrB,MAAM,aAAa;",
6
6
  "names": []
7
7
  }
@@ -675,6 +675,7 @@ const entityFieldsRegistry = {
675
675
  "customer_deal_person_link": {
676
676
  "id": "id",
677
677
  "role": "role",
678
+ "is_primary": "is_primary",
678
679
  "created_at": "created_at",
679
680
  "deal": "deal",
680
681
  "person": "person"
@@ -991,6 +992,7 @@ const entityFieldsRegistry = {
991
992
  "email_hash": "email_hash",
992
993
  "token": "token",
993
994
  "customer_entity_id": "customer_entity_id",
995
+ "person_entity_id": "person_entity_id",
994
996
  "role_ids_json": "role_ids_json",
995
997
  "invited_by_user_id": "invited_by_user_id",
996
998
  "invited_by_customer_user_id": "invited_by_customer_user_id",