@open-mercato/core 0.6.7-develop.6677.1.beabb7ca12 → 0.6.7-develop.6685.1.77c0a5591b

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 (55) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/dist/generated/entities/gateway_payment_operation/index.js +2 -0
  3. package/dist/generated/entities/gateway_payment_operation/index.js.map +2 -2
  4. package/dist/generated/entities/gateway_transaction/index.js +2 -0
  5. package/dist/generated/entities/gateway_transaction/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/payment_gateways/api/capture/route.js +1 -1
  9. package/dist/modules/payment_gateways/api/capture/route.js.map +2 -2
  10. package/dist/modules/payment_gateways/data/entities.js +7 -0
  11. package/dist/modules/payment_gateways/data/entities.js.map +2 -2
  12. package/dist/modules/payment_gateways/lib/capture-ledger.js +183 -0
  13. package/dist/modules/payment_gateways/lib/capture-ledger.js.map +7 -0
  14. package/dist/modules/payment_gateways/lib/gateway-service.js +70 -8
  15. package/dist/modules/payment_gateways/lib/gateway-service.js.map +2 -2
  16. package/dist/modules/payment_gateways/lib/payment-operation-idempotency.js +1 -0
  17. package/dist/modules/payment_gateways/lib/payment-operation-idempotency.js.map +2 -2
  18. package/dist/modules/payment_gateways/migrations/Migration20260725101500_payment_gateways.js +16 -0
  19. package/dist/modules/payment_gateways/migrations/Migration20260725101500_payment_gateways.js.map +7 -0
  20. package/dist/modules/query_index/lib/indexer.js +12 -2
  21. package/dist/modules/query_index/lib/indexer.js.map +2 -2
  22. package/dist/modules/workflows/backend/definitions/visual-editor/page.js +5 -2
  23. package/dist/modules/workflows/backend/definitions/visual-editor/page.js.map +2 -2
  24. package/dist/modules/workflows/components/ActivitiesEditor.js +67 -11
  25. package/dist/modules/workflows/components/ActivitiesEditor.js.map +2 -2
  26. package/dist/modules/workflows/components/TransitionsEditor.js +205 -163
  27. package/dist/modules/workflows/components/TransitionsEditor.js.map +2 -2
  28. package/dist/modules/workflows/data/validators.js +34 -1
  29. package/dist/modules/workflows/data/validators.js.map +3 -3
  30. package/dist/modules/workflows/lib/activity-executor.js +18 -2
  31. package/dist/modules/workflows/lib/activity-executor.js.map +2 -2
  32. package/dist/modules/workflows/lib/format-validation-error.js +46 -1
  33. package/dist/modules/workflows/lib/format-validation-error.js.map +2 -2
  34. package/generated/entities/gateway_payment_operation/index.ts +1 -0
  35. package/generated/entities/gateway_transaction/index.ts +1 -0
  36. package/generated/entity-fields-registry.ts +2 -0
  37. package/package.json +7 -7
  38. package/src/modules/payment_gateways/api/capture/route.ts +1 -1
  39. package/src/modules/payment_gateways/data/entities.ts +8 -2
  40. package/src/modules/payment_gateways/lib/capture-ledger.ts +260 -0
  41. package/src/modules/payment_gateways/lib/gateway-service.ts +83 -10
  42. package/src/modules/payment_gateways/lib/payment-operation-idempotency.ts +1 -0
  43. package/src/modules/payment_gateways/migrations/.snapshot-open-mercato.json +34 -0
  44. package/src/modules/payment_gateways/migrations/Migration20260725101500_payment_gateways.ts +21 -0
  45. package/src/modules/query_index/lib/indexer.ts +25 -2
  46. package/src/modules/workflows/backend/definitions/visual-editor/page.tsx +12 -3
  47. package/src/modules/workflows/components/ActivitiesEditor.tsx +96 -12
  48. package/src/modules/workflows/components/TransitionsEditor.tsx +75 -17
  49. package/src/modules/workflows/data/validators.ts +52 -1
  50. package/src/modules/workflows/i18n/de.json +2 -0
  51. package/src/modules/workflows/i18n/en.json +2 -0
  52. package/src/modules/workflows/i18n/es.json +2 -0
  53. package/src/modules/workflows/i18n/pl.json +2 -0
  54. package/src/modules/workflows/lib/activity-executor.ts +38 -3
  55. package/src/modules/workflows/lib/format-validation-error.ts +60 -0
@@ -1,4 +1,4 @@
1
- [build:core] found 3669 entry points
1
+ [build:core] found 3672 entry points
2
2
  [build:core] built successfully
3
3
  [build:core:generated] found 197 entry points
4
4
  [build:core:generated] built successfully
@@ -9,6 +9,7 @@ const status = "status";
9
9
  const attempt_token = "attempt_token";
10
10
  const attempt_count = "attempt_count";
11
11
  const result = "result";
12
+ const reserved_amount = "reserved_amount";
12
13
  const lease_expires_at = "lease_expires_at";
13
14
  const organization_id = "organization_id";
14
15
  const tenant_id = "tenant_id";
@@ -26,6 +27,7 @@ export {
26
27
  provider_idempotency_key,
27
28
  provider_key,
28
29
  request_hash,
30
+ reserved_amount,
29
31
  result,
30
32
  status,
31
33
  tenant_id,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../generated/entities/gateway_payment_operation/index.ts"],
4
- "sourcesContent": ["export const id = \"id\";\nexport const operation_id = \"operation_id\";\nexport const transaction_id = \"transaction_id\";\nexport const operation_type = \"operation_type\";\nexport const provider_key = \"provider_key\";\nexport const request_hash = \"request_hash\";\nexport const provider_idempotency_key = \"provider_idempotency_key\";\nexport const status = \"status\";\nexport const attempt_token = \"attempt_token\";\nexport const attempt_count = \"attempt_count\";\nexport const result = \"result\";\nexport const lease_expires_at = \"lease_expires_at\";\nexport const organization_id = \"organization_id\";\nexport const tenant_id = \"tenant_id\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\n"],
5
- "mappings": "AAAO,MAAM,KAAK;AACX,MAAM,eAAe;AACrB,MAAM,iBAAiB;AACvB,MAAM,iBAAiB;AACvB,MAAM,eAAe;AACrB,MAAM,eAAe;AACrB,MAAM,2BAA2B;AACjC,MAAM,SAAS;AACf,MAAM,gBAAgB;AACtB,MAAM,gBAAgB;AACtB,MAAM,SAAS;AACf,MAAM,mBAAmB;AACzB,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,aAAa;",
4
+ "sourcesContent": ["export const id = \"id\";\nexport const operation_id = \"operation_id\";\nexport const transaction_id = \"transaction_id\";\nexport const operation_type = \"operation_type\";\nexport const provider_key = \"provider_key\";\nexport const request_hash = \"request_hash\";\nexport const provider_idempotency_key = \"provider_idempotency_key\";\nexport const status = \"status\";\nexport const attempt_token = \"attempt_token\";\nexport const attempt_count = \"attempt_count\";\nexport const result = \"result\";\nexport const reserved_amount = \"reserved_amount\";\nexport const lease_expires_at = \"lease_expires_at\";\nexport const organization_id = \"organization_id\";\nexport const tenant_id = \"tenant_id\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\n"],
5
+ "mappings": "AAAO,MAAM,KAAK;AACX,MAAM,eAAe;AACrB,MAAM,iBAAiB;AACvB,MAAM,iBAAiB;AACvB,MAAM,eAAe;AACrB,MAAM,eAAe;AACrB,MAAM,2BAA2B;AACjC,MAAM,SAAS;AACf,MAAM,gBAAgB;AACtB,MAAM,gBAAgB;AACtB,MAAM,SAAS;AACf,MAAM,kBAAkB;AACxB,MAAM,mBAAmB;AACzB,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,aAAa;",
6
6
  "names": []
7
7
  }
@@ -9,6 +9,7 @@ const gateway_status = "gateway_status";
9
9
  const redirect_url = "redirect_url";
10
10
  const client_secret = "client_secret";
11
11
  const amount = "amount";
12
+ const captured_amount = "captured_amount";
12
13
  const currency_code = "currency_code";
13
14
  const gateway_metadata = "gateway_metadata";
14
15
  const webhook_log = "webhook_log";
@@ -22,6 +23,7 @@ const updated_at = "updated_at";
22
23
  const deleted_at = "deleted_at";
23
24
  export {
24
25
  amount,
26
+ captured_amount,
25
27
  client_secret,
26
28
  created_at,
27
29
  currency_code,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../generated/entities/gateway_transaction/index.ts"],
4
- "sourcesContent": ["export const id = \"id\";\nexport const payment_id = \"payment_id\";\nexport const provider_key = \"provider_key\";\nexport const provider_session_id = \"provider_session_id\";\nexport const gateway_payment_id = \"gateway_payment_id\";\nexport const gateway_refund_id = \"gateway_refund_id\";\nexport const unified_status = \"unified_status\";\nexport const gateway_status = \"gateway_status\";\nexport const redirect_url = \"redirect_url\";\nexport const client_secret = \"client_secret\";\nexport const amount = \"amount\";\nexport const currency_code = \"currency_code\";\nexport const gateway_metadata = \"gateway_metadata\";\nexport const webhook_log = \"webhook_log\";\nexport const last_webhook_at = \"last_webhook_at\";\nexport const last_polled_at = \"last_polled_at\";\nexport const expires_at = \"expires_at\";\nexport const organization_id = \"organization_id\";\nexport const tenant_id = \"tenant_id\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\nexport const deleted_at = \"deleted_at\";\n"],
5
- "mappings": "AAAO,MAAM,KAAK;AACX,MAAM,aAAa;AACnB,MAAM,eAAe;AACrB,MAAM,sBAAsB;AAC5B,MAAM,qBAAqB;AAC3B,MAAM,oBAAoB;AAC1B,MAAM,iBAAiB;AACvB,MAAM,iBAAiB;AACvB,MAAM,eAAe;AACrB,MAAM,gBAAgB;AACtB,MAAM,SAAS;AACf,MAAM,gBAAgB;AACtB,MAAM,mBAAmB;AACzB,MAAM,cAAc;AACpB,MAAM,kBAAkB;AACxB,MAAM,iBAAiB;AACvB,MAAM,aAAa;AACnB,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;",
4
+ "sourcesContent": ["export const id = \"id\";\nexport const payment_id = \"payment_id\";\nexport const provider_key = \"provider_key\";\nexport const provider_session_id = \"provider_session_id\";\nexport const gateway_payment_id = \"gateway_payment_id\";\nexport const gateway_refund_id = \"gateway_refund_id\";\nexport const unified_status = \"unified_status\";\nexport const gateway_status = \"gateway_status\";\nexport const redirect_url = \"redirect_url\";\nexport const client_secret = \"client_secret\";\nexport const amount = \"amount\";\nexport const captured_amount = \"captured_amount\";\nexport const currency_code = \"currency_code\";\nexport const gateway_metadata = \"gateway_metadata\";\nexport const webhook_log = \"webhook_log\";\nexport const last_webhook_at = \"last_webhook_at\";\nexport const last_polled_at = \"last_polled_at\";\nexport const expires_at = \"expires_at\";\nexport const organization_id = \"organization_id\";\nexport const tenant_id = \"tenant_id\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\nexport const deleted_at = \"deleted_at\";\n"],
5
+ "mappings": "AAAO,MAAM,KAAK;AACX,MAAM,aAAa;AACnB,MAAM,eAAe;AACrB,MAAM,sBAAsB;AAC5B,MAAM,qBAAqB;AAC3B,MAAM,oBAAoB;AAC1B,MAAM,iBAAiB;AACvB,MAAM,iBAAiB;AACvB,MAAM,eAAe;AACrB,MAAM,gBAAgB;AACtB,MAAM,SAAS;AACf,MAAM,kBAAkB;AACxB,MAAM,gBAAgB;AACtB,MAAM,mBAAmB;AACzB,MAAM,cAAc;AACpB,MAAM,kBAAkB;AACxB,MAAM,iBAAiB;AACvB,MAAM,aAAa;AACnB,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;",
6
6
  "names": []
7
7
  }
@@ -1236,6 +1236,7 @@ const entityFieldsRegistry = {
1236
1236
  "attempt_token": "attempt_token",
1237
1237
  "attempt_count": "attempt_count",
1238
1238
  "result": "result",
1239
+ "reserved_amount": "reserved_amount",
1239
1240
  "lease_expires_at": "lease_expires_at",
1240
1241
  "organization_id": "organization_id",
1241
1242
  "tenant_id": "tenant_id",
@@ -1266,6 +1267,7 @@ const entityFieldsRegistry = {
1266
1267
  "redirect_url": "redirect_url",
1267
1268
  "client_secret": "client_secret",
1268
1269
  "amount": "amount",
1270
+ "captured_amount": "captured_amount",
1269
1271
  "currency_code": "currency_code",
1270
1272
  "gateway_metadata": "gateway_metadata",
1271
1273
  "webhook_log": "webhook_log",