/* 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 { SearchResultItemDTO } from './SearchResultItemDTO'; import { SearchResultItemDTOFromJSON, SearchResultItemDTOFromJSONTyped, SearchResultItemDTOToJSON, SearchResultItemDTOToJSONTyped, } from './SearchResultItemDTO'; /** * * @export * @interface GroupingByDTO */ export interface GroupingByDTO { /** * * @type {string} * @memberof GroupingByDTO */ additionalInfo?: string; /** * * @type {string} * @memberof GroupingByDTO */ groupBy?: string; /** * * @type {string} * @memberof GroupingByDTO */ groupIdentifier?: GroupingByDTOGroupIdentifierEnum; /** * * @type {Array} * @memberof GroupingByDTO */ searchResultItemDTOS?: Array; } /** * @export */ export const GroupingByDTOGroupIdentifierEnum = { ItemType: 'itemType', OrganizationId: 'organizationId', OrganizationName: 'organizationName', ApplicationId: 'applicationId', ApplicationName: 'applicationName', ApplicationPublicId: 'applicationPublicId', PolicyEvaluationStage: 'policyEvaluationStage', ApplicationVersion: 'applicationVersion', ReportId: 'reportId', ComponentHash: 'componentHash', ComponentFormat: 'componentFormat', ComponentName: 'componentName', ComponentCoordinate: 'componentCoordinate', ComponentCoordinateArtifactId: 'componentCoordinateArtifactId', ComponentCoordinateGroupId: 'componentCoordinateGroupId', ComponentCoordinateName: 'componentCoordinateName', ComponentCoordinateExtension: 'componentCoordinateExtension', ComponentCoordinateArchitecture: 'componentCoordinateArchitecture', ComponentCoordinatePlatform: 'componentCoordinatePlatform', ComponentCoordinateVersion: 'componentCoordinateVersion', ComponentCoordinateClassifier: 'componentCoordinateClassifier', ComponentCoordinateQualifier: 'componentCoordinateQualifier', ComponentCoordinatePackageId: 'componentCoordinatePackageId', VulnerabilityId: 'vulnerabilityId', VulnerabilitySeverity: 'vulnerabilitySeverity', VulnerabilityStatus: 'vulnerabilityStatus', VulnerabilityDescription: 'vulnerabilityDescription', ApplicationCategoryId: 'applicationCategoryId', ApplicationCategoryName: 'applicationCategoryName', ApplicationCategoryColor: 'applicationCategoryColor', ApplicationCategoryDescription: 'applicationCategoryDescription', ComponentLabelId: 'componentLabelId', ComponentLabelName: 'componentLabelName', ComponentLabelColor: 'componentLabelColor', ComponentLabelDescription: 'componentLabelDescription', PolicyId: 'policyId', PolicyName: 'policyName', PolicyThreatCategory: 'policyThreatCategory', PolicyThreatLevel: 'policyThreatLevel', ParentOrganizationName: 'parentOrganizationName', ParentOrganizationId: 'parentOrganizationId', SbomSpecification: 'sbomSpecification', PolicyViolationId: 'policyViolationId', PolicyViolationThreatCategory: 'policyViolationThreatCategory', PolicyViolationThreatLevel: 'policyViolationThreatLevel', PolicyViolationPolicyName: 'policyViolationPolicyName', PolicyViolationPolicyId: 'policyViolationPolicyId', PolicyViolationWaiverStatus: 'policyViolationWaiverStatus', PolicyViolationConstraintName: 'policyViolationConstraintName', ComponentEffectiveLicenseId: 'componentEffectiveLicenseId', ComponentEffectiveLicenseName: 'componentEffectiveLicenseName', ComponentLicenseThreatGroupName: 'componentLicenseThreatGroupName', ComponentLicenseThreatLevel: 'componentLicenseThreatLevel', AllowedContextIds: 'allowedContextIds', DocumentKey: 'documentKey', PolicyWaiverId: 'policyWaiverId', PolicyWaiverPolicyName: 'policyWaiverPolicyName', PolicyWaiverPolicyId: 'policyWaiverPolicyId', PolicyWaiverReason: 'policyWaiverReason', PolicyWaiverComment: 'policyWaiverComment', PolicyWaiverCreatedAt: 'policyWaiverCreatedAt', PolicyWaiverCreatedAtEpochMs: 'policyWaiverCreatedAtEpochMs', PolicyWaiverExpiresAt: 'policyWaiverExpiresAt', PolicyWaiverExpiresAtEpochMs: 'policyWaiverExpiresAtEpochMs', PolicyWaiverScopeOwnerId: 'policyWaiverScopeOwnerId', PolicyWaiverScopeOwnerType: 'policyWaiverScopeOwnerType', PolicyWaiverThreatLevel: 'policyWaiverThreatLevel', PolicyWaiverWaivedBy: 'policyWaiverWaivedBy', PolicyWaiverAuto: 'policyWaiverAuto', PolicyWaiverIsAuto: 'policyWaiverIsAuto', PolicyWaiverExpiryStatus: 'policyWaiverExpiryStatus', PolicyWaiverPolicyType: 'policyWaiverPolicyType', PolicyWaiverScope: 'policyWaiverScope', PolicyWaiverRequestStatus: 'policyWaiverRequestStatus', RequesterName: 'requesterName', ReviewerName: 'reviewerName', ReviewTime: 'reviewTime', RejectionReason: 'rejectionReason', NoteToReviewer: 'noteToReviewer', ApplicationLastEvaluationTimeEpochMs: 'applicationLastEvaluationTimeEpochMs', ApplicationStageSeverityCount: 'applicationStageSeverityCount', ComponentViolationPolicyType: 'componentViolationPolicyType', ComponentViolationState: 'componentViolationState', ComponentMaxPolicyThreatLevel: 'componentMaxPolicyThreatLevel', VulnerabilityFirstSeenEpochMs: 'vulnerabilityFirstSeenEpochMs', ApplicationMaxPolicyThreatLevel: 'applicationMaxPolicyThreatLevel', ApplicationViolationStage: 'applicationViolationStage', ApplicationViolationPolicyType: 'applicationViolationPolicyType', ApplicationViolationState: 'applicationViolationState', ApplicationViolationStateSortOrdinal: 'applicationViolationStateSortOrdinal' } as const; export type GroupingByDTOGroupIdentifierEnum = typeof GroupingByDTOGroupIdentifierEnum[keyof typeof GroupingByDTOGroupIdentifierEnum]; /** * Check if a given object implements the GroupingByDTO interface. */ export function instanceOfGroupingByDTO(value: object): value is GroupingByDTO { return true; } export function GroupingByDTOFromJSON(json: any): GroupingByDTO { return GroupingByDTOFromJSONTyped(json, false); } export function GroupingByDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupingByDTO { if (json == null) { return json; } return { 'additionalInfo': json['additionalInfo'] == null ? undefined : json['additionalInfo'], 'groupBy': json['groupBy'] == null ? undefined : json['groupBy'], 'groupIdentifier': json['groupIdentifier'] == null ? undefined : json['groupIdentifier'], 'searchResultItemDTOS': json['searchResultItemDTOS'] == null ? undefined : ((json['searchResultItemDTOS'] as Array).map(SearchResultItemDTOFromJSON)), }; } export function GroupingByDTOToJSON(json: any): GroupingByDTO { return GroupingByDTOToJSONTyped(json, false); } export function GroupingByDTOToJSONTyped(value?: GroupingByDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'additionalInfo': value['additionalInfo'], 'groupBy': value['groupBy'], 'groupIdentifier': value['groupIdentifier'], 'searchResultItemDTOS': value['searchResultItemDTOS'] == null ? undefined : ((value['searchResultItemDTOS'] as Array).map(SearchResultItemDTOToJSON)), }; }