Skip to content

Commit 780e0f4

Browse files
feat(specs): push source type (generated)
algolia/api-clients-automation#3600 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 88ee3ba commit 780e0f4

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/main/scala/algoliasearch/ingestion/Source.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ case class Source(
4040
sourceID: String,
4141
`type`: SourceType,
4242
name: String,
43-
input: SourceInput,
43+
input: Option[SourceInput] = scala.None,
4444
authenticationID: Option[String] = scala.None,
4545
createdAt: String,
4646
updatedAt: Option[String] = scala.None

src/main/scala/algoliasearch/ingestion/SourceCreate.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ import algoliasearch.ingestion.SourceType._
3535
case class SourceCreate(
3636
`type`: SourceType,
3737
name: String,
38-
input: SourceInput,
38+
input: Option[SourceInput] = scala.None,
3939
authenticationID: Option[String] = scala.None
4040
)

src/main/scala/algoliasearch/ingestion/SourceType.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@ object SourceType {
5757
case object Sfcc extends SourceType {
5858
override def toString = "sfcc"
5959
}
60+
case object Push extends SourceType {
61+
override def toString = "push"
62+
}
6063
val values: Seq[SourceType] =
61-
Seq(Bigcommerce, Bigquery, Commercetools, Csv, Docker, Ga4BigqueryExport, Json, Shopify, Sfcc)
64+
Seq(Bigcommerce, Bigquery, Commercetools, Csv, Docker, Ga4BigqueryExport, Json, Shopify, Sfcc, Push)
6265

6366
def withName(name: String): SourceType = SourceType.values
6467
.find(_.toString == name)

0 commit comments

Comments
 (0)