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

@@ -252,7 +252,8 @@ return static function (Application $app): void {
new OrdersRepository($app->db()),
$companySettingsRepository,
$receiptRepository,
$receiptConfigRepository
$receiptConfigRepository,
$shipmentPackageRepositoryForOrders
);
$printJobRepository = new PrintJobRepository($app->db());
$ordersController = new OrdersController($template, $translator, $auth, $app->orders(), $shipmentPackageRepositoryForOrders, $receiptRepository, $receiptConfigRepository, $emailSendingService, $emailTemplateRepository, $emailMailboxRepository, $app->basePath('storage'), $printJobRepository);
@@ -308,6 +309,7 @@ return static function (Application $app): void {
$companySettingsRepository,
$shipmentProviderRegistry,
$shipmentPackageRepository,
$automationService,
$app->basePath('storage'),
$carrierDeliveryMappings,
$printJobRepository