using System;
using System.Collections.Generic;

namespace StellaOps.Feedser.Source.Distro.Suse.Internal;

internal sealed record SuseAdvisoryDto(
    string AdvisoryId,
    string Title,
    string? Summary,
    DateTimeOffset Published,
    IReadOnlyList<string> CveIds,
    IReadOnlyList<SusePackageStateDto> Packages,
    IReadOnlyList<SuseReferenceDto> References);

internal sealed record SusePackageStateDto(
    string Package,
    string Platform,
    string? Architecture,
    string CanonicalNevra,
    string? IntroducedVersion,
    string? FixedVersion,
    string? LastAffectedVersion,
    string Status);

internal sealed record SuseReferenceDto(
    string Url,
    string? Kind,
    string? Title);
