1 /*
2  *  Make.org Core API
3  *  Copyright (C) 2020 Make.org
4  *
5  * This program is free software: you can redistribute it and/or modify
6  *  it under the terms of the GNU Affero General Public License as
7  *  published by the Free Software Foundation, either version 3 of the
8  *  License, or (at your option) any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU Affero General Public License for more details.
14  *
15  *  You should have received a copy of the GNU Affero General Public License
16  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
17  *
18  */
19 
20 package org.make.core.crmTemplate
21 
22 import io.circe.generic.semiauto.deriveCodec
23 import io.circe.{Codec, Decoder, Encoder}
24 import io.swagger.annotations.ApiModelProperty
25 import org.make.core.StringValue
26 import org.make.core.reference.Language
27 import org.make.core.question.QuestionId
28 
29 import scala.annotation.meta.field
30 
31 final case class CrmQuestionTemplate(
32   @(ApiModelProperty @field)(dataType = "string", required = true, example = "11111111-2222-3333-4444-555555555555")
33   id: CrmQuestionTemplateId,
34   @(ApiModelProperty @field)(
35     dataType = "string",
36     required = true,
37     allowableValues = CrmTemplateKind.swaggerAllowableValues
38   )
39   kind: CrmTemplateKind,
40   @(ApiModelProperty @field)(dataType = "string", required = true, example = "11111111-2222-3333-4444-555555555555")
41   questionId: QuestionId,
42   @(ApiModelProperty @field)(dataType = "string", required = true, example = "123456")
43   template: TemplateId,
44   @(ApiModelProperty @field)(dataType = "string", required = true, example = "fr")
45   language: Language
46 ) extends CrmTemplate
47 
48 object CrmQuestionTemplate {
49 
50   implicit val codec: Codec[CrmQuestionTemplate] = deriveCodec
51 }
52 
53 final case class CrmQuestionTemplateId(value: String) extends StringValue
54 
55 object CrmQuestionTemplateId {
56   implicit val CrmQuestionTemplateIdEncoder: Encoder[CrmQuestionTemplateId] =
57     Encoder[String].contramap(_.value)
58   implicit val CrmQuestionTemplateIdDecoder: Decoder[CrmQuestionTemplateId] =
59     Decoder[String].map(CrmQuestionTemplateId.apply)
60 }
Line Stmt Id Pos Tree Symbol Tests Code
50 2100 1877 - 1888 ApplyToImplicitArgs io.circe.generic.semiauto.deriveCodec io.circe.generic.semiauto.deriveCodec[org.make.core.crmTemplate.CrmQuestionTemplate]({ val inst$macro$24: io.circe.generic.codec.DerivedAsObjectCodec[org.make.core.crmTemplate.CrmQuestionTemplate] = { final class anon$lazy$macro$23 extends AnyRef with Serializable { def <init>(): anon$lazy$macro$23 = { anon$lazy$macro$23.super.<init>(); () }; <stable> <accessor> lazy val inst$macro$1: io.circe.generic.codec.DerivedAsObjectCodec[org.make.core.crmTemplate.CrmQuestionTemplate] = codec.this.DerivedAsObjectCodec.deriveCodec[org.make.core.crmTemplate.CrmQuestionTemplate, shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.crmTemplate.CrmQuestionTemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](shapeless.this.LabelledGeneric.materializeProduct[org.make.core.crmTemplate.CrmQuestionTemplate, (Symbol @@ String("id")) :: (Symbol @@ String("kind")) :: (Symbol @@ String("questionId")) :: (Symbol @@ String("template")) :: (Symbol @@ String("language")) :: shapeless.HNil, org.make.core.crmTemplate.CrmQuestionTemplateId :: org.make.core.crmTemplate.CrmTemplateKind :: org.make.core.question.QuestionId :: org.make.core.crmTemplate.TemplateId :: org.make.core.reference.Language :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.crmTemplate.CrmQuestionTemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](DefaultSymbolicLabelling.instance[org.make.core.crmTemplate.CrmQuestionTemplate, (Symbol @@ String("id")) :: (Symbol @@ String("kind")) :: (Symbol @@ String("questionId")) :: (Symbol @@ String("template")) :: (Symbol @@ String("language")) :: shapeless.HNil](::.apply[Symbol @@ String("id"), (Symbol @@ String("kind")) :: (Symbol @@ String("questionId")) :: (Symbol @@ String("template")) :: (Symbol @@ String("language")) :: shapeless.HNil.type](scala.Symbol.apply("id").asInstanceOf[Symbol @@ String("id")], ::.apply[Symbol @@ String("kind"), (Symbol @@ String("questionId")) :: (Symbol @@ String("template")) :: (Symbol @@ String("language")) :: shapeless.HNil.type](scala.Symbol.apply("kind").asInstanceOf[Symbol @@ String("kind")], ::.apply[Symbol @@ String("questionId"), (Symbol @@ String("template")) :: (Symbol @@ String("language")) :: shapeless.HNil.type](scala.Symbol.apply("questionId").asInstanceOf[Symbol @@ String("questionId")], ::.apply[Symbol @@ String("template"), (Symbol @@ String("language")) :: shapeless.HNil.type](scala.Symbol.apply("template").asInstanceOf[Symbol @@ String("template")], ::.apply[Symbol @@ String("language"), shapeless.HNil.type](scala.Symbol.apply("language").asInstanceOf[Symbol @@ String("language")], HNil)))))), Generic.instance[org.make.core.crmTemplate.CrmQuestionTemplate, org.make.core.crmTemplate.CrmQuestionTemplateId :: org.make.core.crmTemplate.CrmTemplateKind :: org.make.core.question.QuestionId :: org.make.core.crmTemplate.TemplateId :: org.make.core.reference.Language :: shapeless.HNil](((x0$3: org.make.core.crmTemplate.CrmQuestionTemplate) => x0$3 match { case (id: org.make.core.crmTemplate.CrmQuestionTemplateId, kind: org.make.core.crmTemplate.CrmTemplateKind, questionId: org.make.core.question.QuestionId, template: org.make.core.crmTemplate.TemplateId, language: org.make.core.reference.Language): org.make.core.crmTemplate.CrmQuestionTemplate((id$macro$17 @ _), (kind$macro$18 @ _), (questionId$macro$19 @ _), (template$macro$20 @ _), (language$macro$21 @ _)) => ::.apply[org.make.core.crmTemplate.CrmQuestionTemplateId, org.make.core.crmTemplate.CrmTemplateKind :: org.make.core.question.QuestionId :: org.make.core.crmTemplate.TemplateId :: org.make.core.reference.Language :: shapeless.HNil.type](id$macro$17, ::.apply[org.make.core.crmTemplate.CrmTemplateKind, org.make.core.question.QuestionId :: org.make.core.crmTemplate.TemplateId :: org.make.core.reference.Language :: shapeless.HNil.type](kind$macro$18, ::.apply[org.make.core.question.QuestionId, org.make.core.crmTemplate.TemplateId :: org.make.core.reference.Language :: shapeless.HNil.type](questionId$macro$19, ::.apply[org.make.core.crmTemplate.TemplateId, org.make.core.reference.Language :: shapeless.HNil.type](template$macro$20, ::.apply[org.make.core.reference.Language, shapeless.HNil.type](language$macro$21, HNil))))).asInstanceOf[org.make.core.crmTemplate.CrmQuestionTemplateId :: org.make.core.crmTemplate.CrmTemplateKind :: org.make.core.question.QuestionId :: org.make.core.crmTemplate.TemplateId :: org.make.core.reference.Language :: shapeless.HNil] }), ((x0$4: org.make.core.crmTemplate.CrmQuestionTemplateId :: org.make.core.crmTemplate.CrmTemplateKind :: org.make.core.question.QuestionId :: org.make.core.crmTemplate.TemplateId :: org.make.core.reference.Language :: shapeless.HNil) => x0$4 match { case (head: org.make.core.crmTemplate.CrmQuestionTemplateId, tail: org.make.core.crmTemplate.CrmTemplateKind :: org.make.core.question.QuestionId :: org.make.core.crmTemplate.TemplateId :: org.make.core.reference.Language :: shapeless.HNil): org.make.core.crmTemplate.CrmQuestionTemplateId :: org.make.core.crmTemplate.CrmTemplateKind :: org.make.core.question.QuestionId :: org.make.core.crmTemplate.TemplateId :: org.make.core.reference.Language :: shapeless.HNil((id$macro$12 @ _), (head: org.make.core.crmTemplate.CrmTemplateKind, tail: org.make.core.question.QuestionId :: org.make.core.crmTemplate.TemplateId :: org.make.core.reference.Language :: shapeless.HNil): org.make.core.crmTemplate.CrmTemplateKind :: org.make.core.question.QuestionId :: org.make.core.crmTemplate.TemplateId :: org.make.core.reference.Language :: shapeless.HNil((kind$macro$13 @ _), (head: org.make.core.question.QuestionId, tail: org.make.core.crmTemplate.TemplateId :: org.make.core.reference.Language :: shapeless.HNil): org.make.core.question.QuestionId :: org.make.core.crmTemplate.TemplateId :: org.make.core.reference.Language :: shapeless.HNil((questionId$macro$14 @ _), (head: org.make.core.crmTemplate.TemplateId, tail: org.make.core.reference.Language :: shapeless.HNil): org.make.core.crmTemplate.TemplateId :: org.make.core.reference.Language :: shapeless.HNil((template$macro$15 @ _), (head: org.make.core.reference.Language, tail: shapeless.HNil): org.make.core.reference.Language :: shapeless.HNil((language$macro$16 @ _), HNil))))) => crmTemplate.this.CrmQuestionTemplate.apply(id$macro$12, kind$macro$13, questionId$macro$14, template$macro$15, language$macro$16) })), hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("id"), org.make.core.crmTemplate.CrmQuestionTemplateId, (Symbol @@ String("kind")) :: (Symbol @@ String("questionId")) :: (Symbol @@ String("template")) :: (Symbol @@ String("language")) :: shapeless.HNil, org.make.core.crmTemplate.CrmTemplateKind :: org.make.core.question.QuestionId :: org.make.core.crmTemplate.TemplateId :: org.make.core.reference.Language :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("kind"), org.make.core.crmTemplate.CrmTemplateKind, (Symbol @@ String("questionId")) :: (Symbol @@ String("template")) :: (Symbol @@ String("language")) :: shapeless.HNil, org.make.core.question.QuestionId :: org.make.core.crmTemplate.TemplateId :: org.make.core.reference.Language :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("questionId"), org.make.core.question.QuestionId, (Symbol @@ String("template")) :: (Symbol @@ String("language")) :: shapeless.HNil, org.make.core.crmTemplate.TemplateId :: org.make.core.reference.Language :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("template"), org.make.core.crmTemplate.TemplateId, (Symbol @@ String("language")) :: shapeless.HNil, org.make.core.reference.Language :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("language"), org.make.core.reference.Language, shapeless.HNil, shapeless.HNil, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hnilZipWithKeys, Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("language")]](scala.Symbol.apply("language").asInstanceOf[Symbol @@ String("language")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("language")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("template")]](scala.Symbol.apply("template").asInstanceOf[Symbol @@ String("template")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("template")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("questionId")]](scala.Symbol.apply("questionId").asInstanceOf[Symbol @@ String("questionId")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("questionId")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("kind")]](scala.Symbol.apply("kind").asInstanceOf[Symbol @@ String("kind")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("kind")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("id")]](scala.Symbol.apply("id").asInstanceOf[Symbol @@ String("id")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("id")]])), scala.this.<:<.refl[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.crmTemplate.CrmQuestionTemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]), shapeless.Lazy.apply[io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.crmTemplate.CrmQuestionTemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]](anon$lazy$macro$23.this.inst$macro$22)).asInstanceOf[io.circe.generic.codec.DerivedAsObjectCodec[org.make.core.crmTemplate.CrmQuestionTemplate]]; <stable> <accessor> lazy val inst$macro$22: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.crmTemplate.CrmQuestionTemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ({ final class $anon extends io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.crmTemplate.CrmQuestionTemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] { def <init>(): <$anon: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.crmTemplate.CrmQuestionTemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]> = { $anon.super.<init>(); () }; private[this] val circeGenericDecoderForid: io.circe.Decoder[org.make.core.crmTemplate.CrmQuestionTemplateId] = crmTemplate.this.CrmQuestionTemplateId.CrmQuestionTemplateIdDecoder; private[this] val circeGenericDecoderForkind: io.circe.Decoder[org.make.core.crmTemplate.CrmTemplateKind] = crmTemplate.this.CrmTemplateKind.circeDecoder; private[this] val circeGenericDecoderForquestionId: io.circe.Decoder[org.make.core.question.QuestionId] = question.this.QuestionId.QuestionIdDecoder; private[this] val circeGenericDecoderFortemplate: io.circe.Decoder[org.make.core.crmTemplate.TemplateId] = crmTemplate.this.TemplateId.TemplateIdDecoder; private[this] val circeGenericDecoderForlanguage: io.circe.Decoder[org.make.core.reference.Language] = reference.this.Language.LanguageDecoder; private[this] val circeGenericEncoderForid: io.circe.Encoder[org.make.core.crmTemplate.CrmQuestionTemplateId] = crmTemplate.this.CrmQuestionTemplateId.CrmQuestionTemplateIdEncoder; private[this] val circeGenericEncoderForkind: io.circe.Encoder[org.make.core.crmTemplate.CrmTemplateKind] = crmTemplate.this.CrmTemplateKind.circeEncoder; private[this] val circeGenericEncoderForquestionId: io.circe.Encoder[org.make.core.question.QuestionId] = question.this.QuestionId.QuestionIdEncoder; private[this] val circeGenericEncoderFortemplate: io.circe.Encoder[org.make.core.crmTemplate.TemplateId] = crmTemplate.this.TemplateId.TemplateIdEncoder; private[this] val circeGenericEncoderForlanguage: io.circe.Encoder[org.make.core.reference.Language] = reference.this.Language.LanguageEncoder; final def encodeObject(a: shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.crmTemplate.CrmQuestionTemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): io.circe.JsonObject = a match { case (head: shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.crmTemplate.CrmQuestionTemplateId], tail: shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.crmTemplate.CrmQuestionTemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForid @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind], tail: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForkind @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId], tail: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForquestionId @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId], tail: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingFortemplate @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language], tail: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForlanguage @ _), shapeless.HNil))))) => io.circe.JsonObject.fromIterable(scala.collection.immutable.Vector.apply[(String, io.circe.Json)](scala.Tuple2.apply[String, io.circe.Json]("id", $anon.this.circeGenericEncoderForid.apply(circeGenericHListBindingForid)), scala.Tuple2.apply[String, io.circe.Json]("kind", $anon.this.circeGenericEncoderForkind.apply(circeGenericHListBindingForkind)), scala.Tuple2.apply[String, io.circe.Json]("questionId", $anon.this.circeGenericEncoderForquestionId.apply(circeGenericHListBindingForquestionId)), scala.Tuple2.apply[String, io.circe.Json]("template", $anon.this.circeGenericEncoderFortemplate.apply(circeGenericHListBindingFortemplate)), scala.Tuple2.apply[String, io.circe.Json]("language", $anon.this.circeGenericEncoderForlanguage.apply(circeGenericHListBindingForlanguage)))) }; final def apply(c: io.circe.HCursor): io.circe.Decoder.Result[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.crmTemplate.CrmQuestionTemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("id"), org.make.core.crmTemplate.CrmQuestionTemplateId, shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForid.tryDecode(c.downField("id")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("kind"), org.make.core.crmTemplate.CrmTemplateKind, shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForkind.tryDecode(c.downField("kind")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("questionId"), org.make.core.question.QuestionId, shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForquestionId.tryDecode(c.downField("questionId")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("template"), org.make.core.crmTemplate.TemplateId, shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderFortemplate.tryDecode(c.downField("template")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("language"), org.make.core.reference.Language, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForlanguage.tryDecode(c.downField("language")), ReprDecoder.hnilResult)(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance); final override def decodeAccumulating(c: io.circe.HCursor): io.circe.Decoder.AccumulatingResult[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.crmTemplate.CrmQuestionTemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("id"), org.make.core.crmTemplate.CrmQuestionTemplateId, shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForid.tryDecodeAccumulating(c.downField("id")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("kind"), org.make.core.crmTemplate.CrmTemplateKind, shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForkind.tryDecodeAccumulating(c.downField("kind")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("questionId"), org.make.core.question.QuestionId, shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForquestionId.tryDecodeAccumulating(c.downField("questionId")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("template"), org.make.core.crmTemplate.TemplateId, shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderFortemplate.tryDecodeAccumulating(c.downField("template")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("language"), org.make.core.reference.Language, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForlanguage.tryDecodeAccumulating(c.downField("language")), ReprDecoder.hnilResultAccumulating)(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance) }; new $anon() }: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.crmTemplate.CrmQuestionTemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]).asInstanceOf[io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.crmTemplate.CrmQuestionTemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("kind"),org.make.core.crmTemplate.CrmTemplateKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("template"),org.make.core.crmTemplate.TemplateId] :: shapeless.labelled.FieldType[Symbol @@ String("language"),org.make.core.reference.Language] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]] }; new anon$lazy$macro$23().inst$macro$1 }; shapeless.Lazy.apply[io.circe.generic.codec.DerivedAsObjectCodec[org.make.core.crmTemplate.CrmQuestionTemplate]](inst$macro$24) })
57 4617 2106 - 2113 Select org.make.core.crmTemplate.CrmQuestionTemplateId.value x$1.value
57 2372 2080 - 2114 Apply io.circe.Encoder.contramap io.circe.Encoder.apply[String](circe.this.Encoder.encodeString).contramap[org.make.core.crmTemplate.CrmQuestionTemplateId](((x$1: org.make.core.crmTemplate.CrmQuestionTemplateId) => x$1.value))
57 5398 2087 - 2087 Select io.circe.Encoder.encodeString circe.this.Encoder.encodeString
59 1985 2197 - 2245 Apply io.circe.Decoder.map io.circe.Decoder.apply[String](circe.this.Decoder.decodeString).map[org.make.core.crmTemplate.CrmQuestionTemplateId](((value: String) => CrmQuestionTemplateId.apply(value)))
59 558 2204 - 2204 Select io.circe.Decoder.decodeString circe.this.Decoder.decodeString
59 3764 2217 - 2244 Apply org.make.core.crmTemplate.CrmQuestionTemplateId.apply akka.http.scaladsl.testkit.routetest CrmQuestionTemplateId.apply(value)