feat(128): erli orders import
Phase 128 complete: - add Erli /inbox order import with safe mark-read ACK - add cron/manual import controls and sync state tracking - map Erli orders into orderPRO aggregates with mapper tests and docs
This commit is contained in:
@@ -366,6 +366,17 @@ UNIQUE: `(order_id, source_payment_id)`
|
||||
UNIQUE: `(integration_id, shoppro_status_code)`
|
||||
|
||||
**integration_order_sync_state** — Track order fetch progress per integration
|
||||
| Column | Type | Nullable | Notes |
|
||||
|--------|------|----------|-------|
|
||||
| `integration_id` | INT UNSIGNED | NO | PK, FK → integrations(id) CASCADE |
|
||||
| `last_synced_order_updated_at` | DATETIME | YES | Used by Allegro/Erli cursors |
|
||||
| `last_synced_source_order_id` | VARCHAR(64) | YES | Erli stores last acknowledged inbox message id here |
|
||||
| `last_synced_external_order_id` | VARCHAR(128) | YES | Legacy/source-specific cursor |
|
||||
| `last_run_at` | DATETIME | YES | |
|
||||
| `last_success_at` | DATETIME | YES | |
|
||||
| `last_error` | VARCHAR(500) | YES | |
|
||||
| `created_at` | DATETIME | NO | |
|
||||
| `updated_at` | DATETIME | NO | |
|
||||
|
||||
**integration_order_status_sync_state** — Track status sync progress per integration and direction
|
||||
|
||||
@@ -941,6 +952,8 @@ Index: `(status, priority, scheduled_at)`
|
||||
| `created_at` | DATETIME | NO | |
|
||||
| `updated_at` | DATETIME | NO | |
|
||||
|
||||
Seeded recurring jobs include `shoppro_orders_import`, `allegro_orders_import`, `shoppro_order_status_sync`, `shoppro_payment_status_sync`, `allegro_status_sync`, `shipment_tracking_sync`, `automation_history_cleanup`, `order_status_aged`, and `erli_orders_import` (Phase 128; default disabled until Erli order import is enabled).
|
||||
|
||||
---
|
||||
|
||||
## Settings & Configuration
|
||||
|
||||
Reference in New Issue
Block a user