diff --git a/src/main/scala/algoliasearch/ingestion/Source.scala b/src/main/scala/algoliasearch/ingestion/Source.scala index 972ea959..6a3da2d8 100644 --- a/src/main/scala/algoliasearch/ingestion/Source.scala +++ b/src/main/scala/algoliasearch/ingestion/Source.scala @@ -40,7 +40,7 @@ case class Source( sourceID: String, `type`: SourceType, name: String, - input: SourceInput, + input: Option[SourceInput] = scala.None, authenticationID: Option[String] = scala.None, createdAt: String, updatedAt: Option[String] = scala.None diff --git a/src/main/scala/algoliasearch/ingestion/SourceCreate.scala b/src/main/scala/algoliasearch/ingestion/SourceCreate.scala index 9125b797..dd5568ab 100644 --- a/src/main/scala/algoliasearch/ingestion/SourceCreate.scala +++ b/src/main/scala/algoliasearch/ingestion/SourceCreate.scala @@ -35,6 +35,6 @@ import algoliasearch.ingestion.SourceType._ case class SourceCreate( `type`: SourceType, name: String, - input: SourceInput, + input: Option[SourceInput] = scala.None, authenticationID: Option[String] = scala.None ) diff --git a/src/main/scala/algoliasearch/ingestion/SourceType.scala b/src/main/scala/algoliasearch/ingestion/SourceType.scala index ffc673d8..bd866c0b 100644 --- a/src/main/scala/algoliasearch/ingestion/SourceType.scala +++ b/src/main/scala/algoliasearch/ingestion/SourceType.scala @@ -57,8 +57,11 @@ object SourceType { case object Sfcc extends SourceType { override def toString = "sfcc" } + case object Push extends SourceType { + override def toString = "push" + } val values: Seq[SourceType] = - Seq(Bigcommerce, Bigquery, Commercetools, Csv, Docker, Ga4BigqueryExport, Json, Shopify, Sfcc) + Seq(Bigcommerce, Bigquery, Commercetools, Csv, Docker, Ga4BigqueryExport, Json, Shopify, Sfcc, Push) def withName(name: String): SourceType = SourceType.values .find(_.toString == name)