/** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.1 * User agent: apibuilder app.apibuilder.io/edsancha/medallia-api/0.0.1/flow_erm_schema */ package com.edsancha.medallia.api.v0.erm import io.flow.event.relation.mapper.schema.ErmSpec import io.apibuilder.spec.v0.models.{Enum, EnumValue, Field, Model, Union, UnionType} import com.edsancha.medallia.api.v0.models.AccessTokenWrapper import com.edsancha.medallia.api.v0.models.CompareString import com.edsancha.medallia.api.v0.models.ComponentCheckbox import com.edsancha.medallia.api.v0.models.ComponentDropdown import com.edsancha.medallia.api.v0.models.ComponentGrading import com.edsancha.medallia.api.v0.models.ComponentGrading0to10 import com.edsancha.medallia.api.v0.models.ComponentGrading1to10 import com.edsancha.medallia.api.v0.models.ComponentImage import com.edsancha.medallia.api.v0.models.ComponentLabel import com.edsancha.medallia.api.v0.models.ComponentNps import com.edsancha.medallia.api.v0.models.ComponentRadioSelector import com.edsancha.medallia.api.v0.models.ComponentTextArea import com.edsancha.medallia.api.v0.models.ComponentTextInput import com.edsancha.medallia.api.v0.models.ComponentUnion import com.edsancha.medallia.api.v0.models.Configuration import com.edsancha.medallia.api.v0.models.DynamicData import com.edsancha.medallia.api.v0.models.Feedback import com.edsancha.medallia.api.v0.models.FeedbackCheckbox import com.edsancha.medallia.api.v0.models.FeedbackData import com.edsancha.medallia.api.v0.models.FeedbackDropdown import com.edsancha.medallia.api.v0.models.FeedbackGrading import com.edsancha.medallia.api.v0.models.FeedbackGrading0to10 import com.edsancha.medallia.api.v0.models.FeedbackGrading1to10 import com.edsancha.medallia.api.v0.models.FeedbackNps import com.edsancha.medallia.api.v0.models.FeedbackPage import com.edsancha.medallia.api.v0.models.FeedbackRadioSelector import com.edsancha.medallia.api.v0.models.FeedbackTextArea import com.edsancha.medallia.api.v0.models.FeedbackTextInput import com.edsancha.medallia.api.v0.models.FeedbackUnion import com.edsancha.medallia.api.v0.models.Form import com.edsancha.medallia.api.v0.models.FormJson import com.edsancha.medallia.api.v0.models.FormType import com.edsancha.medallia.api.v0.models.Image import com.edsancha.medallia.api.v0.models.InviteData import com.edsancha.medallia.api.v0.models.NumberOfAppSession import com.edsancha.medallia.api.v0.models.NumberOfDays import com.edsancha.medallia.api.v0.models.Page import com.edsancha.medallia.api.v0.models.PercentageOfSessions import com.edsancha.medallia.api.v0.models.RatingViewType import com.edsancha.medallia.api.v0.models.TimeInForeground import com.edsancha.medallia.api.v0.models.TriggerData object GeneratedErmSchema { implicit lazy val ermSpecAccessTokenWrapper: ErmSpec[AccessTokenWrapper] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.access_token_wrapper", spec = Model(name = "access_token_wrapper", plural = "access_token_wrappers", fields = Seq( Field(name = "accessToken", `type` = "string", required = true), )), ) implicit lazy val ermSpecComponentCheckbox: ErmSpec[ComponentCheckbox] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.component_checkbox", spec = Model(name = "component_checkbox", plural = "component_checkboxes", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "required", `type` = "boolean", required = true), Field(name = "label", `type` = "string", required = true), Field(name = "options", `type` = "[string]", required = true), Field(name = "description", `type` = "string", required = false), )), ) implicit lazy val ermSpecComponentDropdown: ErmSpec[ComponentDropdown] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.component_dropdown", spec = Model(name = "component_dropdown", plural = "component_dropdowns", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "required", `type` = "boolean", required = true), Field(name = "placeholder", `type` = "string", required = true), Field(name = "label", `type` = "string", required = true), Field(name = "options", `type` = "[string]", required = true), Field(name = "description", `type` = "string", required = false), )), ) implicit lazy val ermSpecComponentGrading: ErmSpec[ComponentGrading] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.component_grading", spec = Model(name = "component_grading", plural = "component_gradings", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "required", `type` = "boolean", required = true), Field(name = "label", `type` = "string", required = true), Field(name = "ratingViewType", `type` = "ratingViewType", required = true), Field(name = "description", `type` = "string", required = false), )), resolved = Map[String, ErmSpec[_]]( "com.edsancha.medallia.api.v0.enums.ratingViewType" -> ermSpecRatingViewType, ), ) implicit lazy val ermSpecComponentGrading0to10: ErmSpec[ComponentGrading0to10] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.component_grading0to10", spec = Model(name = "component_grading0to10", plural = "component_grading0to10s", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "required", `type` = "boolean", required = true), Field(name = "label", `type` = "string", required = true), Field(name = "ratingViewType", `type` = "ratingViewType", required = true), Field(name = "description", `type` = "string", required = false), )), resolved = Map[String, ErmSpec[_]]( "com.edsancha.medallia.api.v0.enums.ratingViewType" -> ermSpecRatingViewType, ), ) implicit lazy val ermSpecComponentGrading1to10: ErmSpec[ComponentGrading1to10] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.component_grading1to10", spec = Model(name = "component_grading1to10", plural = "component_grading1to10s", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "required", `type` = "boolean", required = true), Field(name = "label", `type` = "string", required = true), Field(name = "ratingViewType", `type` = "ratingViewType", required = true), Field(name = "description", `type` = "string", required = false), )), resolved = Map[String, ErmSpec[_]]( "com.edsancha.medallia.api.v0.enums.ratingViewType" -> ermSpecRatingViewType, ), ) implicit lazy val ermSpecImage: ErmSpec[Image] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.image", spec = Model(name = "image", plural = "images", fields = Seq( Field(name = "name", `type` = "string", required = true), Field(name = "url", `type` = "string", required = true), )), ) implicit lazy val ermSpecComponentImage: ErmSpec[ComponentImage] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.component_image", spec = Model(name = "component_image", plural = "component_images", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "imageObject", `type` = "image", required = false), Field(name = "uploadedResource", `type` = "image", required = false), )), resolved = Map[String, ErmSpec[_]]( "com.edsancha.medallia.api.v0.models.image" -> ermSpecImage, ), ) implicit lazy val ermSpecComponentLabel: ErmSpec[ComponentLabel] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.component_label", spec = Model(name = "component_label", plural = "component_labels", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "labelContent", `type` = "string", required = false), Field(name = "num_of_lines", `type` = "integer", required = true), )), ) implicit lazy val ermSpecComponentNps: ErmSpec[ComponentNps] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.component_nps", spec = Model(name = "component_nps", plural = "component_npses", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "required", `type` = "boolean", required = true), Field(name = "label", `type` = "string", required = true), Field(name = "description", `type` = "string", required = false), Field(name = "ratingViewType", `type` = "ratingViewType", required = true), )), resolved = Map[String, ErmSpec[_]]( "com.edsancha.medallia.api.v0.enums.ratingViewType" -> ermSpecRatingViewType, ), ) implicit lazy val ermSpecComponentRadioSelector: ErmSpec[ComponentRadioSelector] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.component_radioSelector", spec = Model(name = "component_radioSelector", plural = "component_radioSelectors", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "required", `type` = "boolean", required = true), Field(name = "label", `type` = "string", required = true), Field(name = "options", `type` = "[string]", required = true), Field(name = "description", `type` = "string", required = false), )), ) implicit lazy val ermSpecComponentTextArea: ErmSpec[ComponentTextArea] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.component_textArea", spec = Model(name = "component_textArea", plural = "component_textAreas", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "required", `type` = "boolean", required = true), Field(name = "placeholder", `type` = "string", required = true), Field(name = "label", `type` = "string", required = true), Field(name = "num_of_lines", `type` = "integer", required = true), Field(name = "description", `type` = "string", required = false), )), ) implicit lazy val ermSpecComponentTextInput: ErmSpec[ComponentTextInput] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.component_textInput", spec = Model(name = "component_textInput", plural = "component_textInputs", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "required", `type` = "boolean", required = true), Field(name = "placeholder", `type` = "string", required = true), Field(name = "label", `type` = "string", required = true), Field(name = "max_chars", `type` = "integer", required = true), Field(name = "description", `type` = "string", required = false), )), ) implicit lazy val ermSpecInviteData: ErmSpec[InviteData] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.inviteData", spec = Model(name = "inviteData", plural = "inviteDatas", fields = Seq( Field(name = "invitationHeadline", `type` = "string", required = true), Field(name = "invitationText", `type` = "string", required = true), Field(name = "provideButtonText", `type` = "string", required = true), Field(name = "declineButtonText", `type` = "string", required = true), Field(name = "laterButtonText", `type` = "string", required = true), )), ) implicit lazy val ermSpecNumberOfAppSession: ErmSpec[NumberOfAppSession] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.numberOfAppSession", spec = Model(name = "numberOfAppSession", plural = "numberOfAppSessions", fields = Seq( Field(name = "number", `type` = "string", required = true), Field(name = "compareString", `type` = "compareString", required = true), )), resolved = Map[String, ErmSpec[_]]( "com.edsancha.medallia.api.v0.enums.compareString" -> ermSpecCompareString, ), ) implicit lazy val ermSpecTimeInForeground: ErmSpec[TimeInForeground] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.timeInForeground", spec = Model(name = "timeInForeground", plural = "timeInForegrounds", fields = Seq( Field(name = "time", `type` = "string", required = true), Field(name = "compareString", `type` = "compareString", required = true), )), resolved = Map[String, ErmSpec[_]]( "com.edsancha.medallia.api.v0.enums.compareString" -> ermSpecCompareString, ), ) implicit lazy val ermSpecNumberOfDays: ErmSpec[NumberOfDays] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.numberOfDays", spec = Model(name = "numberOfDays", plural = "numberOfDayses", fields = Seq( Field(name = "days", `type` = "string", required = true), )), ) implicit lazy val ermSpecPercentageOfSessions: ErmSpec[PercentageOfSessions] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.percentageOfSessions", spec = Model(name = "percentageOfSessions", plural = "percentageOfSessionses", fields = Seq( Field(name = "prec", `type` = "string", required = true), )), ) implicit lazy val ermSpecTriggerData: ErmSpec[TriggerData] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.triggerData", spec = Model(name = "triggerData", plural = "triggerDatas", fields = Seq( Field(name = "numberOfAppSession", `type` = "numberOfAppSession", required = false), Field(name = "timeInForeground", `type` = "timeInForeground", required = false), Field(name = "mobileappVersion", `type` = "[string]", required = false), Field(name = "submitted", `type` = "numberOfDays", required = false), Field(name = "declined", `type` = "numberOfDays", required = false), Field(name = "mobileosVersion", `type` = "[string]", required = false), Field(name = "percentageOfSessions", `type` = "percentageOfSessions", required = false), Field(name = "genericRule", `type` = "string", required = false), )), resolved = Map[String, ErmSpec[_]]( "com.edsancha.medallia.api.v0.models.numberOfAppSession" -> ermSpecNumberOfAppSession, "com.edsancha.medallia.api.v0.models.timeInForeground" -> ermSpecTimeInForeground, "com.edsancha.medallia.api.v0.models.numberOfDays" -> ermSpecNumberOfDays, "com.edsancha.medallia.api.v0.models.percentageOfSessions" -> ermSpecPercentageOfSessions, ), ) implicit lazy val ermSpecPage: ErmSpec[Page] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.page", spec = Model(name = "page", plural = "pages", fields = Seq( Field(name = "name", `type` = "string", required = true), Field(name = "index", `type` = "integer", required = true), Field(name = "dynamicData", `type` = "[component_union]", required = true), )), resolved = Map[String, ErmSpec[_]]( "com.edsancha.medallia.api.v0.unions.component_union" -> ermSpecComponentUnion, ), ) implicit lazy val ermSpecFormJson: ErmSpec[FormJson] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.formJson", spec = Model(name = "formJson", plural = "formJsons", fields = Seq( Field(name = "pages", `type` = "[page]", required = true), )), resolved = Map[String, ErmSpec[_]]( "com.edsancha.medallia.api.v0.models.page" -> ermSpecPage, ), ) implicit lazy val ermSpecForm: ErmSpec[Form] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.form", spec = Model(name = "form", plural = "forms", fields = Seq( Field(name = "formId", `type` = "integer", required = true), Field(name = "name", `type` = "string", required = true), Field(name = "title", `type` = "string", required = true), Field(name = "formType", `type` = "formType", required = true), Field(name = "inviteData", `type` = "inviteData", required = false), Field(name = "triggerData", `type` = "triggerData", required = false), Field(name = "formJson", `type` = "formJson", required = true), )), resolved = Map[String, ErmSpec[_]]( "com.edsancha.medallia.api.v0.enums.formType" -> ermSpecFormType, "com.edsancha.medallia.api.v0.models.inviteData" -> ermSpecInviteData, "com.edsancha.medallia.api.v0.models.triggerData" -> ermSpecTriggerData, "com.edsancha.medallia.api.v0.models.formJson" -> ermSpecFormJson, ), ) implicit lazy val ermSpecConfiguration: ErmSpec[Configuration] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.configuration", spec = Model(name = "configuration", plural = "configurations", fields = Seq( Field(name = "propertyId", `type` = "integer", required = true), Field(name = "feedbackSubmitUrl", `type` = "string", required = true), Field(name = "forms", `type` = "[form]", required = true), )), resolved = Map[String, ErmSpec[_]]( "com.edsancha.medallia.api.v0.models.form" -> ermSpecForm, ), ) implicit lazy val ermSpecDynamicData: ErmSpec[DynamicData] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.dynamicData", spec = Model(name = "dynamicData", plural = "dynamicDatas", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "required", `type` = "boolean", required = true), Field(name = "component", `type` = "string", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "placeholder", `type` = "string", required = true), Field(name = "label", `type` = "string", required = true), Field(name = "description", `type` = "string", required = false), Field(name = "options", `type` = "[string]", required = false), Field(name = "imageObject", `type` = "image", required = false), )), resolved = Map[String, ErmSpec[_]]( "com.edsancha.medallia.api.v0.models.image" -> ermSpecImage, ), ) implicit lazy val ermSpecFeedbackPage: ErmSpec[FeedbackPage] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.feedback_page", spec = Model(name = "feedback_page", plural = "feedback_pages", fields = Seq( Field(name = "components", `type` = "[feedback_union]", required = true), )), resolved = Map[String, ErmSpec[_]]( "com.edsancha.medallia.api.v0.unions.feedback_union" -> ermSpecFeedbackUnion, ), ) implicit lazy val ermSpecFeedbackData: ErmSpec[FeedbackData] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.feedback_data", spec = Model(name = "feedback_data", plural = "feedback_data", fields = Seq( Field(name = "customParams", `type` = "json", required = false), Field(name = "pages", `type` = "[feedback_page]", required = true), )), resolved = Map[String, ErmSpec[_]]( "com.edsancha.medallia.api.v0.models.feedback_page" -> ermSpecFeedbackPage, ), ) implicit lazy val ermSpecFeedback: ErmSpec[Feedback] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.feedback", spec = Model(name = "feedback", plural = "feedbacks", fields = Seq( Field(name = "formId", `type` = "integer", required = true), Field(name = "dynamicData", `type` = "feedback_data", required = true), )), resolved = Map[String, ErmSpec[_]]( "com.edsancha.medallia.api.v0.models.feedback_data" -> ermSpecFeedbackData, ), ) implicit lazy val ermSpecFeedbackCheckbox: ErmSpec[FeedbackCheckbox] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.feedback_checkbox", spec = Model(name = "feedback_checkbox", plural = "feedback_checkboxes", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "value", `type` = "[integer]", required = true), Field(name = "type", `type` = "string", required = true), )), ) implicit lazy val ermSpecFeedbackDropdown: ErmSpec[FeedbackDropdown] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.feedback_dropdown", spec = Model(name = "feedback_dropdown", plural = "feedback_dropdowns", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "value", `type` = "integer", required = true), Field(name = "type", `type` = "string", required = true), )), ) implicit lazy val ermSpecFeedbackGrading: ErmSpec[FeedbackGrading] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.feedback_grading", spec = Model(name = "feedback_grading", plural = "feedback_gradings", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "value", `type` = "integer", required = true), Field(name = "type", `type` = "string", required = true), )), ) implicit lazy val ermSpecFeedbackGrading0to10: ErmSpec[FeedbackGrading0to10] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.feedback_grading0to10", spec = Model(name = "feedback_grading0to10", plural = "feedback_grading0to10s", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "value", `type` = "integer", required = true), Field(name = "type", `type` = "string", required = true), )), ) implicit lazy val ermSpecFeedbackGrading1to10: ErmSpec[FeedbackGrading1to10] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.feedback_grading1to10", spec = Model(name = "feedback_grading1to10", plural = "feedback_grading1to10s", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "value", `type` = "integer", required = true), Field(name = "type", `type` = "string", required = true), )), ) implicit lazy val ermSpecFeedbackNps: ErmSpec[FeedbackNps] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.feedback_nps", spec = Model(name = "feedback_nps", plural = "feedback_npses", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "value", `type` = "integer", required = true), Field(name = "type", `type` = "string", required = true), )), ) implicit lazy val ermSpecFeedbackRadioSelector: ErmSpec[FeedbackRadioSelector] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.feedback_radioSelector", spec = Model(name = "feedback_radioSelector", plural = "feedback_radioSelectors", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "value", `type` = "integer", required = true), Field(name = "type", `type` = "string", required = true), )), ) implicit lazy val ermSpecFeedbackTextArea: ErmSpec[FeedbackTextArea] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.feedback_textArea", spec = Model(name = "feedback_textArea", plural = "feedback_textAreas", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "value", `type` = "string", required = true), Field(name = "type", `type` = "string", required = true), )), ) implicit lazy val ermSpecFeedbackTextInput: ErmSpec[FeedbackTextInput] = ErmSpec.model( qualifiedName = "com.edsancha.medallia.api.v0.models.feedback_textInput", spec = Model(name = "feedback_textInput", plural = "feedback_textInputs", fields = Seq( Field(name = "index", `type` = "integer", required = true), Field(name = "id", `type` = "integer", required = true), Field(name = "unique_name", `type` = "string", required = true), Field(name = "value", `type` = "string", required = true), Field(name = "type", `type` = "string", required = true), )), ) implicit lazy val ermSpecComponentUnion: ErmSpec[ComponentUnion] = ErmSpec.union( qualifiedName = "com.edsancha.medallia.api.v0.unions.component_union", spec = Union(name = "component_union", plural = "component_unions", discriminator = Some("component"), types = Seq( UnionType(`type` = "component_label", discriminatorValue = Some("label")), UnionType(`type` = "component_image", discriminatorValue = Some("image")), UnionType(`type` = "component_nps", discriminatorValue = Some("nps")), UnionType(`type` = "component_textArea", discriminatorValue = Some("textArea")), UnionType(`type` = "component_textInput", discriminatorValue = Some("textInput")), UnionType(`type` = "component_radioSelector", discriminatorValue = Some("radio")), UnionType(`type` = "component_checkbox", discriminatorValue = Some("checkbox")), UnionType(`type` = "component_dropdown", discriminatorValue = Some("select")), UnionType(`type` = "component_grading", discriminatorValue = Some("grading")), UnionType(`type` = "component_grading0to10", discriminatorValue = Some("grading0to10")), UnionType(`type` = "component_grading1to10", discriminatorValue = Some("grading1to10")), )), resolved = Map[String, ErmSpec[_]]( "com.edsancha.medallia.api.v0.models.component_label" -> ermSpecComponentLabel, "com.edsancha.medallia.api.v0.models.component_image" -> ermSpecComponentImage, "com.edsancha.medallia.api.v0.models.component_nps" -> ermSpecComponentNps, "com.edsancha.medallia.api.v0.models.component_textArea" -> ermSpecComponentTextArea, "com.edsancha.medallia.api.v0.models.component_textInput" -> ermSpecComponentTextInput, "com.edsancha.medallia.api.v0.models.component_radioSelector" -> ermSpecComponentRadioSelector, "com.edsancha.medallia.api.v0.models.component_checkbox" -> ermSpecComponentCheckbox, "com.edsancha.medallia.api.v0.models.component_dropdown" -> ermSpecComponentDropdown, "com.edsancha.medallia.api.v0.models.component_grading" -> ermSpecComponentGrading, "com.edsancha.medallia.api.v0.models.component_grading0to10" -> ermSpecComponentGrading0to10, "com.edsancha.medallia.api.v0.models.component_grading1to10" -> ermSpecComponentGrading1to10, ), ) implicit lazy val ermSpecFeedbackUnion: ErmSpec[FeedbackUnion] = ErmSpec.union( qualifiedName = "com.edsancha.medallia.api.v0.unions.feedback_union", spec = Union(name = "feedback_union", plural = "feedback_unions", discriminator = Some("component"), types = Seq( UnionType(`type` = "feedback_nps", discriminatorValue = Some("nps")), UnionType(`type` = "feedback_textArea", discriminatorValue = Some("textArea")), UnionType(`type` = "feedback_textInput", discriminatorValue = Some("textInput")), UnionType(`type` = "feedback_radioSelector", discriminatorValue = Some("radio")), UnionType(`type` = "feedback_checkbox", discriminatorValue = Some("checkbox")), UnionType(`type` = "feedback_dropdown", discriminatorValue = Some("select")), UnionType(`type` = "feedback_grading", discriminatorValue = Some("grading")), UnionType(`type` = "feedback_grading0to10", discriminatorValue = Some("grading0to10")), UnionType(`type` = "feedback_grading1to10", discriminatorValue = Some("grading1to10")), )), resolved = Map[String, ErmSpec[_]]( "com.edsancha.medallia.api.v0.models.feedback_nps" -> ermSpecFeedbackNps, "com.edsancha.medallia.api.v0.models.feedback_textArea" -> ermSpecFeedbackTextArea, "com.edsancha.medallia.api.v0.models.feedback_textInput" -> ermSpecFeedbackTextInput, "com.edsancha.medallia.api.v0.models.feedback_radioSelector" -> ermSpecFeedbackRadioSelector, "com.edsancha.medallia.api.v0.models.feedback_checkbox" -> ermSpecFeedbackCheckbox, "com.edsancha.medallia.api.v0.models.feedback_dropdown" -> ermSpecFeedbackDropdown, "com.edsancha.medallia.api.v0.models.feedback_grading" -> ermSpecFeedbackGrading, "com.edsancha.medallia.api.v0.models.feedback_grading0to10" -> ermSpecFeedbackGrading0to10, "com.edsancha.medallia.api.v0.models.feedback_grading1to10" -> ermSpecFeedbackGrading1to10, ), ) implicit lazy val ermSpecRatingViewType: ErmSpec[RatingViewType] = ErmSpec.`enum`( qualifiedName = "com.edsancha.medallia.api.v0.enums.ratingViewType", spec = Enum(name = "ratingViewType", plural = "ratingViewTypes", values = Seq( EnumValue(name = "slide"), EnumValue(name = "numbersSquare"), EnumValue(name = "gradingSlider"), EnumValue(name = "gradingDropdown"), EnumValue(name = "stars"), EnumValue(name = "emoticons"), EnumValue(name = "numbers"), EnumValue(name = "smilies"), EnumValue(name = "bars"), )), ) implicit lazy val ermSpecCompareString: ErmSpec[CompareString] = ErmSpec.`enum`( qualifiedName = "com.edsancha.medallia.api.v0.enums.compareString", spec = Enum(name = "compareString", plural = "compareStrings", values = Seq( EnumValue(name = "greaterThan"), EnumValue(name = "equals"), EnumValue(name = "smallerThan"), )), ) implicit lazy val ermSpecFormType: ErmSpec[FormType] = ErmSpec.`enum`( qualifiedName = "com.edsancha.medallia.api.v0.enums.formType", spec = Enum(name = "formType", plural = "formTypes", values = Seq( EnumValue(name = "mobileInvitation"), EnumValue(name = "code"), )), ) val all: Seq[ErmSpec[_]] = Seq( ermSpecAccessTokenWrapper, ermSpecComponentCheckbox, ermSpecComponentDropdown, ermSpecComponentGrading, ermSpecComponentGrading0to10, ermSpecComponentGrading1to10, ermSpecImage, ermSpecComponentImage, ermSpecComponentLabel, ermSpecComponentNps, ermSpecComponentRadioSelector, ermSpecComponentTextArea, ermSpecComponentTextInput, ermSpecInviteData, ermSpecNumberOfAppSession, ermSpecTimeInForeground, ermSpecNumberOfDays, ermSpecPercentageOfSessions, ermSpecTriggerData, ermSpecPage, ermSpecFormJson, ermSpecForm, ermSpecConfiguration, ermSpecDynamicData, ermSpecFeedbackPage, ermSpecFeedbackData, ermSpecFeedback, ermSpecFeedbackCheckbox, ermSpecFeedbackDropdown, ermSpecFeedbackGrading, ermSpecFeedbackGrading0to10, ermSpecFeedbackGrading1to10, ermSpecFeedbackNps, ermSpecFeedbackRadioSelector, ermSpecFeedbackTextArea, ermSpecFeedbackTextInput, ermSpecComponentUnion, ermSpecFeedbackUnion, ermSpecRatingViewType, ermSpecCompareString, ermSpecFormType, ) }