ldc-cocotte/app/Actions/Settings/UpdateSettingsInput.php
Jérémy Munsch 3b3997d547
feat(employees): automated sync with Arcadia API, BO settings, Shopper value objects, and pagination migration
- Implement automated synchronization of employees via Arcadia API (EmployeeSyncService, SynchronizeEmployeesWithArcadiaApi, FetchAndUpsertArcadiaEmployees)
- Add Back-Office application settings for employee sites (Setting singleton, GetSettingsQuery, UpdateSettings, SettingsController, EmployeeSitesInputComponent.vue)
- Strongly type Employee attributes using Domain Value Objects (ShopperEstablishmentCode, ShopperSiteCode, ShopperServiceCode) and Eloquent Casts
- Migrate pagination from Domain to Shared\Pagination namespace across queries and inputs
- Remove legacy and dead CSV employee import/export code
- Restore Domain\Ports\Services\CsvGenerator interface for Regate order generation
- Add comprehensive Pest unit, integration, and feature test coverage
2026-10-27 09:58:44 +01:00

27 lines
816 B
PHP

<?php
declare(strict_types=1);
namespace App\Actions\Settings;
use App\Contracts\ActionInput;
use Domain\Models\ValueObjects\ShopperSiteCode;
use Webmozart\Assert\Assert;
final readonly class UpdateSettingsInput implements ActionInput
{
/** @var array<int, \Domain\Models\ValueObjects\ShopperSiteCode> */
public array $arcadiaSites;
/**
* @param array<int, \Domain\Models\ValueObjects\ShopperSiteCode> $employeeSites
* @param array<int, \Domain\Models\ValueObjects\ShopperSiteCode>|null $arcadiaSites
*/
public function __construct(
public array $employeeSites = [],
?array $arcadiaSites = null,
) {
$this->arcadiaSites = $arcadiaSites ?? $this->employeeSites;
Assert::allIsInstanceOf($this->employeeSites, ShopperSiteCode::class);
}
}