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,6 +1,7 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { InjectModel } from '@nestjs/mongoose';
|
||||
import { FilterQuery, Model } from 'mongoose';
|
||||
import { AttemptSummaryDto } from '../common/dto/attempt-summary.dto';
|
||||
import { InquiryStatus } from '../common/enums/inquiry-status.enum';
|
||||
import { InquiryType } from '../common/enums/inquiry-type.enum';
|
||||
import { ProviderName } from '../common/enums/provider-name.enum';
|
||||
@@ -23,6 +24,7 @@ export interface CreateInquiryLogInput {
|
||||
requestId: string;
|
||||
trackingCode: string;
|
||||
error?: Record<string, unknown>;
|
||||
attemptSummary?: AttemptSummaryDto;
|
||||
}
|
||||
|
||||
export interface InquiryLogListItem {
|
||||
|
||||
@@ -41,6 +41,9 @@ export class InquiryLog {
|
||||
@Prop({ type: Object })
|
||||
error?: Record<string, unknown>;
|
||||
|
||||
@Prop({ type: Object })
|
||||
attemptSummary?: Record<string, unknown>;
|
||||
|
||||
createdAt?: Date;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user