All Downloads are FREE. Search and download functionalities are using the official Maven repository.

codacy.events.Primitives.scala Maven / Gradle / Ivy

The newest version!
package codacy.events

case class AccountId(value: Long) extends AnyVal

case class AccountIntegrationId(value: Long) extends AnyVal

case class OrganizationId(value: Long) extends AnyVal

case class TeamId(value: Long) extends AnyVal

case class ProjectName(value: String) extends AnyVal

case class ProjectUrl(value: String) extends AnyVal

case class ProjectId(value: Long) extends AnyVal

case class PullRequestId(value: Long) extends AnyVal

case class PullRequestNumber(value: Long) extends AnyVal

case class Commit(
    id: CommitId,
    commitUuid: CommitUUId,
    projectId: ProjectId,
    created: Timestamp,
    dataRetentionStatus: RetentionStatus.Value
)

case class CommitId(value: Long) extends AnyVal

case class CommitUUId(value: String) extends AnyVal

case class RepositoryRef(value: String) extends AnyVal

case class BranchId(value: Long) extends AnyVal

case class TaskId(value: Long) extends AnyVal

case class IsAscending(value: Boolean) extends AnyVal

case class ResultId(value: Long) extends AnyVal

case class FileId(value: Long) extends AnyVal

case class JobId(value: Long) extends AnyVal

case class ProjectIntegrationId(value: Long) extends AnyVal

case class EngineId(value: String) extends AnyVal

case class EngineName(value: String) extends AnyVal

case class PatternId(value: Long) extends AnyVal

case class GrowthBundleId(value: Long) extends AnyVal

case class StorageLocation(storageKey: String) extends AnyVal

case class Language(value: String) extends AnyVal

case class SubscriptionId(value: Long) extends AnyVal

case class PaymentPlan(planModel: String, isTrialPlan: Option[Boolean], product: CodacyProduct.Value)

case class Subscription(subscriptionId: SubscriptionId, paymentPlan: PaymentPlan)

case class PrBreakingBuild(pullRequestId: PullRequestId, ownerId: Option[AccountId])

case class RepositoryUpdateId(value: Long)

case class CoverageSummary(
    coverableLines: Long,
    coveredLines: Long,
    value: BigDecimal,
    grade: Option[MetricQualityGrade.Value]
)

// Value is optional because it may not be present in diff coverage
case class CoverageResult(
    coverableLines: Long,
    coveredLines: Long,
    value: Option[BigDecimal],
    grade: Option[CoverageGrade.Value]
)

case class CoveragePercentage(value: Double) extends AnyVal

case class NumberOfLines(value: Long) extends AnyVal

case class AffectedFiles(value: Int) extends AnyVal

case class GateSetting(value: Double) extends AnyVal

case class RemoteUser(id: String, login: String, email: String)

case class QueueItemId(id: Long) extends AnyVal

case class PlanValue(value: Long) extends AnyVal

case class DiscoveryPhase(
    startTime: Timestamp,
    endTime: Timestamp,
    queueItemId: QueueItemId,
    requestType: RequestType.Value,
    branches: Option[Set[String]],
    prs: Option[Set[Long]],
    planValue: PlanValue,
    retries: Int,
    forced: Boolean
)

case class DiscoveryRequestMetadata(
    timestamp: Timestamp,
    requestType: RequestType.Value,
    branches: Option[Set[String]],
    prs: Option[Set[Long]],
    forced: Boolean
)

case class BranchName(name: String) extends AnyVal

case class Email(value: String) extends AnyVal

case class Actor(email: Email, role: Seq[Role.Value], isCodacyAdmin: Boolean)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy