chore: strengthen backend eslint profile
This commit is contained in:
@@ -14,18 +14,22 @@ export class InvestmentReadQueryDto {
|
||||
|
||||
export class InvestmentSyncDto {
|
||||
@ApiProperty({ type: String, nullable: true })
|
||||
declare id: string | null;
|
||||
declare id: null | string;
|
||||
|
||||
@ApiProperty({ enum: syncStateValues })
|
||||
declare state: (typeof syncStateValues)[number];
|
||||
|
||||
@ApiProperty({ type: String, nullable: true })
|
||||
declare errorCode: string | null;
|
||||
declare errorCode: null | string;
|
||||
}
|
||||
|
||||
export class InvestmentRangeDto {
|
||||
@ApiPropertyOptional()
|
||||
accountId?: string;
|
||||
|
||||
@ApiProperty({ format: 'date-time' })
|
||||
declare from: string;
|
||||
|
||||
@ApiProperty({ format: 'date-time' })
|
||||
declare to: string;
|
||||
}
|
||||
@@ -33,38 +37,51 @@ export class InvestmentRangeDto {
|
||||
export class InvestmentCoverageDto {
|
||||
@ApiProperty({ type: InvestmentRangeDto, isArray: true })
|
||||
declare requested: InvestmentRangeDto[];
|
||||
|
||||
@ApiProperty({ type: InvestmentRangeDto, isArray: true })
|
||||
declare completeRanges: InvestmentRangeDto[];
|
||||
|
||||
@ApiProperty({ type: InvestmentRangeDto, isArray: true })
|
||||
declare missingRanges: InvestmentRangeDto[];
|
||||
|
||||
@ApiProperty({ type: String, nullable: true, format: 'date-time' })
|
||||
declare asOf: string | null;
|
||||
declare asOf: null | string;
|
||||
|
||||
@ApiProperty({ enum: ['known', 'unknown'] })
|
||||
declare historyBoundary: 'known' | 'unknown';
|
||||
|
||||
@ApiProperty({
|
||||
enum: ['missing', 'loading', 'partial', 'complete', 'failed'],
|
||||
})
|
||||
declare historyState:
|
||||
'missing' | 'loading' | 'partial' | 'complete' | 'failed';
|
||||
'complete' | 'failed' | 'loading' | 'missing' | 'partial';
|
||||
}
|
||||
|
||||
export class InvestmentDependencyDto {
|
||||
@ApiProperty()
|
||||
declare dataRevision: string;
|
||||
|
||||
@ApiProperty()
|
||||
declare stateVersion: string;
|
||||
|
||||
@ApiPropertyOptional({ type: String })
|
||||
unavailableReason?: string;
|
||||
|
||||
@ApiPropertyOptional({ type: () => InvestmentCoverageDto })
|
||||
coverage?: InvestmentCoverageDto;
|
||||
|
||||
@ApiProperty()
|
||||
declare resourceKey: string;
|
||||
|
||||
@ApiProperty({ enum: availabilityValues })
|
||||
declare availability: (typeof availabilityValues)[number];
|
||||
|
||||
@ApiProperty({ enum: freshnessValues })
|
||||
declare freshness: (typeof freshnessValues)[number];
|
||||
|
||||
@ApiProperty({ type: String, format: 'date-time', nullable: true })
|
||||
declare lastSuccessfulAt: string | null;
|
||||
declare lastSuccessfulAt: null | string;
|
||||
|
||||
@ApiProperty({ type: InvestmentSyncDto })
|
||||
declare sync: InvestmentSyncDto;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user