Skip to content

Commit

Permalink
feat(specs): push source type (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3600

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Aug 27, 2024
1 parent 88ee3ba commit 780e0f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/algoliasearch/ingestion/Source.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/algoliasearch/ingestion/SourceCreate.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
5 changes: 4 additions & 1 deletion src/main/scala/algoliasearch/ingestion/SourceType.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 780e0f4

Please sign in to comment.