From 218b84be279b7965c5e5cc5524e4bb7079e34960 Mon Sep 17 00:00:00 2001 From: Doug Clinton Date: Wed, 9 Aug 2023 17:39:23 +0200 Subject: [PATCH] Update libraries --- build.sbt | 6 +++--- .../src/main/scala/client/http4s/AddonsClient.scala | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index 3f69920..9b07dfc 100644 --- a/build.sbt +++ b/build.sbt @@ -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", diff --git a/modules/client-http4s/src/main/scala/client/http4s/AddonsClient.scala b/modules/client-http4s/src/main/scala/client/http4s/AddonsClient.scala index 17d960a..6d56314 100644 --- a/modules/client-http4s/src/main/scala/client/http4s/AddonsClient.scala +++ b/modules/client-http4s/src/main/scala/client/http4s/AddonsClient.scala @@ -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)) @@ -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))