Skip to content

Commit

Permalink
Update libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
DougC committed Aug 9, 2023
1 parent 6b280ab commit 218b84b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
val circeVersion = "0.14.5"
val cirisVersion = "2.3.3"
val enumeratumVersion = "1.7.2"
val enumeratumVersion = "1.7.3"
val http4sVersion = "0.23.11"
val sttpVersion = "1.5.5"
val tapirVersion = "1.5.5"
val sttpVersion = "1.7.2"
val tapirVersion = "1.6.4"

lazy val commonSettings = Seq(
organization := "com.wellfactored",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ import org.http4s.implicits.http4sLiteralsSyntax
import sttp.tapir.client.http4s.Http4sClientInterpreter
import sttp.tapir.{auth, oneOf}

import scala.annotation.unused

class AddonsClient[F[_]: Async](bearerToken: String)(httpClient: Client[F]) {
val interpreter: Http4sClientInterpreter[F] = Http4sClientInterpreter()

@unused
def getAddons: F[Either[String, List[Addon.Summary]]] = {
val e = AddonEndpoints.getAddons
.errorOut(oneOf[NorthflankError](NorthflankError.badRequestVariant, NorthflankError.notFoundVariant))
Expand All @@ -27,6 +30,7 @@ class AddonsClient[F[_]: Async](bearerToken: String)(httpClient: Client[F]) {
}
}

@unused
def getAddon(id: String): F[Either[String, Addon.Detail]] = {
val e = AddonEndpoints.getAddon
.errorOut(oneOf[NorthflankError](NorthflankError.badRequestVariant, NorthflankError.notFoundVariant))
Expand Down

0 comments on commit 218b84b

Please sign in to comment.