codacy.events.Event.scala Maven / Gradle / Ivy
package codacy.events
private[events] trait Events extends PathPart.Root {
case object ui extends PathPart with uiEvents {
case object login extends PathPart {
case object user extends PathPart {
@eventDef case class signedUp(
accountId: AccountId,
adCampaign: Option[String],
experiments: List[String],
utmContent: Option[String] = None,
utmSource: Option[String] = None,
utmMedium: Option[String] = None,
utmTerm: Option[String] = None
)
}
}
case object organization extends PathPart {
case object member extends PathPart {
@eventDef case class added(organizationId: OrganizationId, accountId: AccountId, inviterId: AccountId)
@eventDef case class removed(organizationId: OrganizationId, accountId: AccountId)
}
}
}
case object system extends PathPart with systemEvents
}
object Events extends Events