- Add comprehensive health check system with multiple endpoints - Add Prometheus metrics endpoint - Add production logging configurations (5 strategies) - Add complete deployment documentation suite: * QUICKSTART.md - 30-minute deployment guide * DEPLOYMENT_CHECKLIST.md - Printable verification checklist * DEPLOYMENT_WORKFLOW.md - Complete deployment lifecycle * PRODUCTION_DEPLOYMENT.md - Comprehensive technical reference * production-logging.md - Logging configuration guide * ANSIBLE_DEPLOYMENT.md - Infrastructure as Code automation * README.md - Navigation hub * DEPLOYMENT_SUMMARY.md - Executive summary - Add deployment scripts and automation - Add DEPLOYMENT_PLAN.md - Concrete plan for immediate deployment - Update README with production-ready features All production infrastructure is now complete and ready for deployment.
58 lines
1.3 KiB
PHP
58 lines
1.3 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Domain\PreSave;
|
|
|
|
use App\Domain\PreSave\ValueObjects\StreamingPlatform;
|
|
|
|
interface PreSaveRegistrationRepositoryInterface
|
|
{
|
|
/**
|
|
* Save or update registration
|
|
*/
|
|
public function save(PreSaveRegistration $registration): PreSaveRegistration;
|
|
|
|
/**
|
|
* Find registration for user and campaign
|
|
*/
|
|
public function findForUserAndCampaign(
|
|
string $userId,
|
|
int $campaignId,
|
|
StreamingPlatform $platform
|
|
): ?PreSaveRegistration;
|
|
|
|
/**
|
|
* Find all registrations for a user
|
|
*
|
|
* @return array<PreSaveRegistration>
|
|
*/
|
|
public function findByUserId(string $userId): array;
|
|
|
|
/**
|
|
* Find pending registrations for a campaign
|
|
*
|
|
* @return array<PreSaveRegistration>
|
|
*/
|
|
public function findPendingByCampaign(int $campaignId): array;
|
|
|
|
/**
|
|
* Find retryable failed registrations
|
|
*
|
|
* @return array<PreSaveRegistration>
|
|
*/
|
|
public function findRetryable(int $campaignId, int $maxRetries): array;
|
|
|
|
/**
|
|
* Get status counts for a campaign
|
|
*
|
|
* @return array<string, int>
|
|
*/
|
|
public function getStatusCounts(int $campaignId): array;
|
|
|
|
/**
|
|
* Delete registration
|
|
*/
|
|
public function delete(int $id): bool;
|
|
}
|