feat(47-shipment-created-automation): immediate shipment automation trigger

Phase 47 complete:

- add event shipment.created triggered immediately after shipment creation

- add action update_shipment_status with real-change guard and chain-safe emit

- update automation UI/options, docs, and PAUL state artifacts
This commit is contained in:
2026-03-28 13:24:20 +01:00
parent d3f4bdaecd
commit ad9087d5e4
17 changed files with 784 additions and 310 deletions

View File

@@ -64,6 +64,7 @@ final class CronHandlerFactory
$apiClient = new AllegroApiClient();
$statusMappingRepository = new AllegroStatusMappingRepository($this->db);
$ordersRepository = new OrdersRepository($this->db);
$allegroSyncStateRepository = new AllegroOrderSyncStateRepository($this->db);
$orderImportService = new AllegroOrderImportService(
$integrationRepository,
@@ -76,7 +77,7 @@ final class CronHandlerFactory
$ordersSyncService = new AllegroOrdersSyncService(
$integrationRepository,
new AllegroOrderSyncStateRepository($this->db),
$allegroSyncStateRepository,
$tokenManager,
$apiClient,
$orderImportService
@@ -128,6 +129,11 @@ final class CronHandlerFactory
new AllegroStatusSyncService(
$cronRepository,
$orderImportService,
$apiClient,
$tokenManager,
$statusMappingRepository,
$allegroSyncStateRepository,
$integrationRepository,
$this->db
)
),
@@ -194,7 +200,8 @@ final class CronHandlerFactory
$ordersRepository,
$companySettingsRepository,
new ReceiptRepository($this->db),
new ReceiptConfigRepository($this->db)
new ReceiptConfigRepository($this->db),
new ShipmentPackageRepository($this->db)
);
}
}