/* tslint:disable */ /* eslint-disable */ /** * Sonatype Lifecycle Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.207.0-01 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; import type { ApiComponentIdentifierDTOV2 } from './ApiComponentIdentifierDTOV2'; import { ApiComponentIdentifierDTOV2FromJSON, ApiComponentIdentifierDTOV2FromJSONTyped, ApiComponentIdentifierDTOV2ToJSON, ApiComponentIdentifierDTOV2ToJSONTyped, } from './ApiComponentIdentifierDTOV2'; /** * * @export * @interface SearchResultItemDTO */ export interface SearchResultItemDTO { /** * * @type {string} * @memberof SearchResultItemDTO */ applicationCategoryColor?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ applicationCategoryDescription?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ applicationCategoryId?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ applicationCategoryName?: string; /** * * @type {Array} * @memberof SearchResultItemDTO */ applicationCategoryNames?: Array; /** * * @type {string} * @memberof SearchResultItemDTO */ applicationId?: string; /** * * @type {number} * @memberof SearchResultItemDTO */ applicationLastEvaluationTimeEpochMs?: number; /** * * @type {string} * @memberof SearchResultItemDTO */ applicationName?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ applicationPublicId?: string; /** * * @type {Array} * @memberof SearchResultItemDTO */ applicationStageSeverityCounts?: Array; /** * * @type {string} * @memberof SearchResultItemDTO */ applicationVersion?: string; /** * * @type {Array} * @memberof SearchResultItemDTO */ applicationViolationPolicyTypes?: Array; /** * * @type {Array} * @memberof SearchResultItemDTO */ applicationViolationStages?: Array; /** * * @type {Array} * @memberof SearchResultItemDTO */ applicationViolationStates?: Array; /** * * @type {string} * @memberof SearchResultItemDTO */ componentEffectiveLicenseId?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ componentEffectiveLicenseName?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ componentHash?: string; /** * * @type {ApiComponentIdentifierDTOV2} * @memberof SearchResultItemDTO */ componentIdentifier?: ApiComponentIdentifierDTOV2; /** * * @type {string} * @memberof SearchResultItemDTO */ componentLabelColor?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ componentLabelDescription?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ componentLabelId?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ componentLabelName?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ componentLicenseThreatGroupName?: string; /** * * @type {number} * @memberof SearchResultItemDTO */ componentLicenseThreatLevel?: number; /** * * @type {string} * @memberof SearchResultItemDTO */ componentName?: string; /** * * @type {Array} * @memberof SearchResultItemDTO */ componentViolationPolicyTypes?: Array; /** * * @type {Array} * @memberof SearchResultItemDTO */ componentViolationStates?: Array; /** * * @type {string} * @memberof SearchResultItemDTO */ itemType?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ noteToReviewer?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ organizationId?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ organizationName?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyEvaluationStage?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyId?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyName?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyThreatCategory?: string; /** * * @type {number} * @memberof SearchResultItemDTO */ policyThreatLevel?: number; /** * * @type {string} * @memberof SearchResultItemDTO */ policyViolationConstraintName?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyViolationId?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyViolationPolicyId?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyViolationPolicyName?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyViolationThreatCategory?: string; /** * * @type {number} * @memberof SearchResultItemDTO */ policyViolationThreatLevel?: number; /** * * @type {string} * @memberof SearchResultItemDTO */ policyViolationWaiverStatus?: string; /** * * @type {boolean} * @memberof SearchResultItemDTO */ policyWaiverAuto?: boolean; /** * * @type {string} * @memberof SearchResultItemDTO */ policyWaiverComment?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyWaiverCreatedAt?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyWaiverExpiresAt?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyWaiverExpiryStatus?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyWaiverId?: string; /** * * @type {boolean} * @memberof SearchResultItemDTO */ policyWaiverIsAuto?: boolean; /** * * @type {string} * @memberof SearchResultItemDTO */ policyWaiverPolicyId?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyWaiverPolicyName?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyWaiverPolicyType?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyWaiverReason?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyWaiverRequestStatus?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyWaiverScope?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyWaiverScopeOwnerId?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ policyWaiverScopeOwnerType?: string; /** * * @type {number} * @memberof SearchResultItemDTO */ policyWaiverThreatLevel?: number; /** * * @type {string} * @memberof SearchResultItemDTO */ policyWaiverWaivedBy?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ rejectionReason?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ reportId?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ requesterName?: string; /** * * @type {number} * @memberof SearchResultItemDTO */ resultIndex?: number; /** * * @type {string} * @memberof SearchResultItemDTO */ reviewTime?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ reviewerName?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ sbomSpecification?: string; /** * * @type {string} * @memberof SearchResultItemDTO */ vulnerabilityDescription?: string; /** * * @type {number} * @memberof SearchResultItemDTO */ vulnerabilityFirstSeenEpochMs?: number; /** * * @type {string} * @memberof SearchResultItemDTO */ vulnerabilityId?: string; /** * * @type {number} * @memberof SearchResultItemDTO */ vulnerabilitySeverity?: number; /** * * @type {string} * @memberof SearchResultItemDTO */ vulnerabilityStatus?: string; } /** * Check if a given object implements the SearchResultItemDTO interface. */ export function instanceOfSearchResultItemDTO(value: object): value is SearchResultItemDTO { return true; } export function SearchResultItemDTOFromJSON(json: any): SearchResultItemDTO { return SearchResultItemDTOFromJSONTyped(json, false); } export function SearchResultItemDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchResultItemDTO { if (json == null) { return json; } return { 'applicationCategoryColor': json['applicationCategoryColor'] == null ? undefined : json['applicationCategoryColor'], 'applicationCategoryDescription': json['applicationCategoryDescription'] == null ? undefined : json['applicationCategoryDescription'], 'applicationCategoryId': json['applicationCategoryId'] == null ? undefined : json['applicationCategoryId'], 'applicationCategoryName': json['applicationCategoryName'] == null ? undefined : json['applicationCategoryName'], 'applicationCategoryNames': json['applicationCategoryNames'] == null ? undefined : json['applicationCategoryNames'], 'applicationId': json['applicationId'] == null ? undefined : json['applicationId'], 'applicationLastEvaluationTimeEpochMs': json['applicationLastEvaluationTimeEpochMs'] == null ? undefined : json['applicationLastEvaluationTimeEpochMs'], 'applicationName': json['applicationName'] == null ? undefined : json['applicationName'], 'applicationPublicId': json['applicationPublicId'] == null ? undefined : json['applicationPublicId'], 'applicationStageSeverityCounts': json['applicationStageSeverityCounts'] == null ? undefined : json['applicationStageSeverityCounts'], 'applicationVersion': json['applicationVersion'] == null ? undefined : json['applicationVersion'], 'applicationViolationPolicyTypes': json['applicationViolationPolicyTypes'] == null ? undefined : json['applicationViolationPolicyTypes'], 'applicationViolationStages': json['applicationViolationStages'] == null ? undefined : json['applicationViolationStages'], 'applicationViolationStates': json['applicationViolationStates'] == null ? undefined : json['applicationViolationStates'], 'componentEffectiveLicenseId': json['componentEffectiveLicenseId'] == null ? undefined : json['componentEffectiveLicenseId'], 'componentEffectiveLicenseName': json['componentEffectiveLicenseName'] == null ? undefined : json['componentEffectiveLicenseName'], 'componentHash': json['componentHash'] == null ? undefined : json['componentHash'], 'componentIdentifier': json['componentIdentifier'] == null ? undefined : ApiComponentIdentifierDTOV2FromJSON(json['componentIdentifier']), 'componentLabelColor': json['componentLabelColor'] == null ? undefined : json['componentLabelColor'], 'componentLabelDescription': json['componentLabelDescription'] == null ? undefined : json['componentLabelDescription'], 'componentLabelId': json['componentLabelId'] == null ? undefined : json['componentLabelId'], 'componentLabelName': json['componentLabelName'] == null ? undefined : json['componentLabelName'], 'componentLicenseThreatGroupName': json['componentLicenseThreatGroupName'] == null ? undefined : json['componentLicenseThreatGroupName'], 'componentLicenseThreatLevel': json['componentLicenseThreatLevel'] == null ? undefined : json['componentLicenseThreatLevel'], 'componentName': json['componentName'] == null ? undefined : json['componentName'], 'componentViolationPolicyTypes': json['componentViolationPolicyTypes'] == null ? undefined : json['componentViolationPolicyTypes'], 'componentViolationStates': json['componentViolationStates'] == null ? undefined : json['componentViolationStates'], 'itemType': json['itemType'] == null ? undefined : json['itemType'], 'noteToReviewer': json['noteToReviewer'] == null ? undefined : json['noteToReviewer'], 'organizationId': json['organizationId'] == null ? undefined : json['organizationId'], 'organizationName': json['organizationName'] == null ? undefined : json['organizationName'], 'policyEvaluationStage': json['policyEvaluationStage'] == null ? undefined : json['policyEvaluationStage'], 'policyId': json['policyId'] == null ? undefined : json['policyId'], 'policyName': json['policyName'] == null ? undefined : json['policyName'], 'policyThreatCategory': json['policyThreatCategory'] == null ? undefined : json['policyThreatCategory'], 'policyThreatLevel': json['policyThreatLevel'] == null ? undefined : json['policyThreatLevel'], 'policyViolationConstraintName': json['policyViolationConstraintName'] == null ? undefined : json['policyViolationConstraintName'], 'policyViolationId': json['policyViolationId'] == null ? undefined : json['policyViolationId'], 'policyViolationPolicyId': json['policyViolationPolicyId'] == null ? undefined : json['policyViolationPolicyId'], 'policyViolationPolicyName': json['policyViolationPolicyName'] == null ? undefined : json['policyViolationPolicyName'], 'policyViolationThreatCategory': json['policyViolationThreatCategory'] == null ? undefined : json['policyViolationThreatCategory'], 'policyViolationThreatLevel': json['policyViolationThreatLevel'] == null ? undefined : json['policyViolationThreatLevel'], 'policyViolationWaiverStatus': json['policyViolationWaiverStatus'] == null ? undefined : json['policyViolationWaiverStatus'], 'policyWaiverAuto': json['policyWaiverAuto'] == null ? undefined : json['policyWaiverAuto'], 'policyWaiverComment': json['policyWaiverComment'] == null ? undefined : json['policyWaiverComment'], 'policyWaiverCreatedAt': json['policyWaiverCreatedAt'] == null ? undefined : json['policyWaiverCreatedAt'], 'policyWaiverExpiresAt': json['policyWaiverExpiresAt'] == null ? undefined : json['policyWaiverExpiresAt'], 'policyWaiverExpiryStatus': json['policyWaiverExpiryStatus'] == null ? undefined : json['policyWaiverExpiryStatus'], 'policyWaiverId': json['policyWaiverId'] == null ? undefined : json['policyWaiverId'], 'policyWaiverIsAuto': json['policyWaiverIsAuto'] == null ? undefined : json['policyWaiverIsAuto'], 'policyWaiverPolicyId': json['policyWaiverPolicyId'] == null ? undefined : json['policyWaiverPolicyId'], 'policyWaiverPolicyName': json['policyWaiverPolicyName'] == null ? undefined : json['policyWaiverPolicyName'], 'policyWaiverPolicyType': json['policyWaiverPolicyType'] == null ? undefined : json['policyWaiverPolicyType'], 'policyWaiverReason': json['policyWaiverReason'] == null ? undefined : json['policyWaiverReason'], 'policyWaiverRequestStatus': json['policyWaiverRequestStatus'] == null ? undefined : json['policyWaiverRequestStatus'], 'policyWaiverScope': json['policyWaiverScope'] == null ? undefined : json['policyWaiverScope'], 'policyWaiverScopeOwnerId': json['policyWaiverScopeOwnerId'] == null ? undefined : json['policyWaiverScopeOwnerId'], 'policyWaiverScopeOwnerType': json['policyWaiverScopeOwnerType'] == null ? undefined : json['policyWaiverScopeOwnerType'], 'policyWaiverThreatLevel': json['policyWaiverThreatLevel'] == null ? undefined : json['policyWaiverThreatLevel'], 'policyWaiverWaivedBy': json['policyWaiverWaivedBy'] == null ? undefined : json['policyWaiverWaivedBy'], 'rejectionReason': json['rejectionReason'] == null ? undefined : json['rejectionReason'], 'reportId': json['reportId'] == null ? undefined : json['reportId'], 'requesterName': json['requesterName'] == null ? undefined : json['requesterName'], 'resultIndex': json['resultIndex'] == null ? undefined : json['resultIndex'], 'reviewTime': json['reviewTime'] == null ? undefined : json['reviewTime'], 'reviewerName': json['reviewerName'] == null ? undefined : json['reviewerName'], 'sbomSpecification': json['sbomSpecification'] == null ? undefined : json['sbomSpecification'], 'vulnerabilityDescription': json['vulnerabilityDescription'] == null ? undefined : json['vulnerabilityDescription'], 'vulnerabilityFirstSeenEpochMs': json['vulnerabilityFirstSeenEpochMs'] == null ? undefined : json['vulnerabilityFirstSeenEpochMs'], 'vulnerabilityId': json['vulnerabilityId'] == null ? undefined : json['vulnerabilityId'], 'vulnerabilitySeverity': json['vulnerabilitySeverity'] == null ? undefined : json['vulnerabilitySeverity'], 'vulnerabilityStatus': json['vulnerabilityStatus'] == null ? undefined : json['vulnerabilityStatus'], }; } export function SearchResultItemDTOToJSON(json: any): SearchResultItemDTO { return SearchResultItemDTOToJSONTyped(json, false); } export function SearchResultItemDTOToJSONTyped(value?: SearchResultItemDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'applicationCategoryColor': value['applicationCategoryColor'], 'applicationCategoryDescription': value['applicationCategoryDescription'], 'applicationCategoryId': value['applicationCategoryId'], 'applicationCategoryName': value['applicationCategoryName'], 'applicationCategoryNames': value['applicationCategoryNames'], 'applicationId': value['applicationId'], 'applicationLastEvaluationTimeEpochMs': value['applicationLastEvaluationTimeEpochMs'], 'applicationName': value['applicationName'], 'applicationPublicId': value['applicationPublicId'], 'applicationStageSeverityCounts': value['applicationStageSeverityCounts'], 'applicationVersion': value['applicationVersion'], 'applicationViolationPolicyTypes': value['applicationViolationPolicyTypes'], 'applicationViolationStages': value['applicationViolationStages'], 'applicationViolationStates': value['applicationViolationStates'], 'componentEffectiveLicenseId': value['componentEffectiveLicenseId'], 'componentEffectiveLicenseName': value['componentEffectiveLicenseName'], 'componentHash': value['componentHash'], 'componentIdentifier': ApiComponentIdentifierDTOV2ToJSON(value['componentIdentifier']), 'componentLabelColor': value['componentLabelColor'], 'componentLabelDescription': value['componentLabelDescription'], 'componentLabelId': value['componentLabelId'], 'componentLabelName': value['componentLabelName'], 'componentLicenseThreatGroupName': value['componentLicenseThreatGroupName'], 'componentLicenseThreatLevel': value['componentLicenseThreatLevel'], 'componentName': value['componentName'], 'componentViolationPolicyTypes': value['componentViolationPolicyTypes'], 'componentViolationStates': value['componentViolationStates'], 'itemType': value['itemType'], 'noteToReviewer': value['noteToReviewer'], 'organizationId': value['organizationId'], 'organizationName': value['organizationName'], 'policyEvaluationStage': value['policyEvaluationStage'], 'policyId': value['policyId'], 'policyName': value['policyName'], 'policyThreatCategory': value['policyThreatCategory'], 'policyThreatLevel': value['policyThreatLevel'], 'policyViolationConstraintName': value['policyViolationConstraintName'], 'policyViolationId': value['policyViolationId'], 'policyViolationPolicyId': value['policyViolationPolicyId'], 'policyViolationPolicyName': value['policyViolationPolicyName'], 'policyViolationThreatCategory': value['policyViolationThreatCategory'], 'policyViolationThreatLevel': value['policyViolationThreatLevel'], 'policyViolationWaiverStatus': value['policyViolationWaiverStatus'], 'policyWaiverAuto': value['policyWaiverAuto'], 'policyWaiverComment': value['policyWaiverComment'], 'policyWaiverCreatedAt': value['policyWaiverCreatedAt'], 'policyWaiverExpiresAt': value['policyWaiverExpiresAt'], 'policyWaiverExpiryStatus': value['policyWaiverExpiryStatus'], 'policyWaiverId': value['policyWaiverId'], 'policyWaiverIsAuto': value['policyWaiverIsAuto'], 'policyWaiverPolicyId': value['policyWaiverPolicyId'], 'policyWaiverPolicyName': value['policyWaiverPolicyName'], 'policyWaiverPolicyType': value['policyWaiverPolicyType'], 'policyWaiverReason': value['policyWaiverReason'], 'policyWaiverRequestStatus': value['policyWaiverRequestStatus'], 'policyWaiverScope': value['policyWaiverScope'], 'policyWaiverScopeOwnerId': value['policyWaiverScopeOwnerId'], 'policyWaiverScopeOwnerType': value['policyWaiverScopeOwnerType'], 'policyWaiverThreatLevel': value['policyWaiverThreatLevel'], 'policyWaiverWaivedBy': value['policyWaiverWaivedBy'], 'rejectionReason': value['rejectionReason'], 'reportId': value['reportId'], 'requesterName': value['requesterName'], 'resultIndex': value['resultIndex'], 'reviewTime': value['reviewTime'], 'reviewerName': value['reviewerName'], 'sbomSpecification': value['sbomSpecification'], 'vulnerabilityDescription': value['vulnerabilityDescription'], 'vulnerabilityFirstSeenEpochMs': value['vulnerabilityFirstSeenEpochMs'], 'vulnerabilityId': value['vulnerabilityId'], 'vulnerabilitySeverity': value['vulnerabilitySeverity'], 'vulnerabilityStatus': value['vulnerabilityStatus'], }; }