Some checks failed
CI/CD Pipeline / Integration Tests (push) Blocked by required conditions
CI/CD Pipeline / Deployment Summary (push) Blocked by required conditions
CI/CD Pipeline / Backend - Build, Test & Push (push) Failing after 2m11s
CI/CD Pipeline / Frontend - Build, Test & Push (push) Has been cancelled
Root cause: The .gitignore had 'out/' which was ignoring ALL directories named 'out', including 'src/domain/ports/out/' which contains critical port interfaces for hexagonal architecture. Changes: - Modified .gitignore to only ignore Next.js output directories - Added all 17 missing files from src/domain/ports/out/ - audit-log.repository.ts - booking.repository.ts - cache.port.ts - carrier-connector.port.ts - carrier.repository.ts - csv-booking.repository.ts - csv-rate-loader.port.ts - email.port.ts - index.ts - notification.repository.ts - organization.repository.ts - pdf.port.ts - port.repository.ts - rate-quote.repository.ts - storage.port.ts - user.repository.ts - webhook.repository.ts This resolves all "Cannot find module '@domain/ports/out/*'" TypeScript errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
54 lines
1.1 KiB
TypeScript
54 lines
1.1 KiB
TypeScript
/**
|
|
* RateQuote Repository Port
|
|
*
|
|
* Defines the interface for RateQuote persistence operations.
|
|
* This is a secondary port (output port) in hexagonal architecture.
|
|
*/
|
|
|
|
import { RateQuote } from '../../entities/rate-quote.entity';
|
|
|
|
export const RATE_QUOTE_REPOSITORY = 'RateQuoteRepository';
|
|
|
|
export interface RateQuoteRepository {
|
|
/**
|
|
* Save a rate quote entity
|
|
*/
|
|
save(rateQuote: RateQuote): Promise<RateQuote>;
|
|
|
|
/**
|
|
* Save multiple rate quote entities
|
|
*/
|
|
saveMany(rateQuotes: RateQuote[]): Promise<RateQuote[]>;
|
|
|
|
/**
|
|
* Find rate quote by ID
|
|
*/
|
|
findById(id: string): Promise<RateQuote | null>;
|
|
|
|
/**
|
|
* Find rate quotes by search criteria
|
|
*/
|
|
findBySearchCriteria(criteria: {
|
|
origin: string;
|
|
destination: string;
|
|
containerType: string;
|
|
departureDate: Date;
|
|
}): Promise<RateQuote[]>;
|
|
|
|
/**
|
|
* Find all rate quotes for a specific carrier
|
|
*/
|
|
findByCarrier(carrierId: string): Promise<RateQuote[]>;
|
|
|
|
/**
|
|
* Delete expired rate quotes
|
|
* Returns the number of deleted records
|
|
*/
|
|
deleteExpired(): Promise<number>;
|
|
|
|
/**
|
|
* Delete rate quote by ID
|
|
*/
|
|
deleteById(id: string): Promise<void>;
|
|
}
|