forked from Shared/esg
feat: add car inquiries with resilience, ownership privacy, and retry visibility
Introduce plate, chassis, and third-party car endpoints, a wall-clock inquiry deadline with transport-only retries, and ownership-safe no-match errors so another person's identity never leaks. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { InquiryType } from '../enums/inquiry-type.enum';
|
||||
import { ProviderName } from '../enums/provider-name.enum';
|
||||
import { AttemptTrail } from '../helpers/provider-resilience.helper';
|
||||
|
||||
/**
|
||||
* Contract every external provider adapter must fulfill.
|
||||
@@ -19,4 +20,8 @@ export interface InquiryProvider<TRequest = unknown, TResponse = unknown> {
|
||||
export interface ProviderExecutionContext {
|
||||
requestId: string;
|
||||
trackingCode: string;
|
||||
/** Absolute timestamp when the inquiry wall-clock budget expires. */
|
||||
deadlineAt?: number;
|
||||
/** Mutable trail of HTTP attempts for client summary + logs. */
|
||||
attemptTrail?: AttemptTrail;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user