20
20
package algoliasearch .ingestion
21
21
22
22
import algoliasearch .ingestion .BigQueryDataType ._
23
- import algoliasearch .ingestion .DockerImageType ._
24
- import algoliasearch .ingestion .DockerRegistry ._
25
23
import algoliasearch .ingestion .MappingTypeCSV ._
26
24
import algoliasearch .ingestion .MethodType ._
27
25
@@ -40,15 +38,12 @@ object SourceInputSerializer extends Serializer[SourceInput] {
40
38
41
39
case (TypeInfo (clazz, _), json) if clazz == classOf [SourceInput ] =>
42
40
json match {
43
- case value : JObject
44
- if value.obj.exists(_._1 == " registry" ) && value.obj.exists(_._1 == " image" ) && value.obj.exists(
45
- _._1 == " imageType"
46
- ) && value.obj.exists(_._1 == " configuration" ) =>
47
- Extraction .extract[SourceDocker ](value)
48
41
case value : JObject
49
42
if value.obj.exists(_._1 == " projectID" ) && value.obj
50
43
.exists(_._1 == " datasetID" ) && value.obj.exists(_._1 == " tablePrefix" ) =>
51
44
Extraction .extract[SourceGA4BigQueryExport ](value)
45
+ case value : JObject if value.obj.exists(_._1 == " image" ) && value.obj.exists(_._1 == " configuration" ) =>
46
+ Extraction .extract[SourceDocker ](value)
52
47
case value : JObject if value.obj.exists(_._1 == " projectKey" ) => Extraction .extract[SourceCommercetools ](value)
53
48
case value : JObject if value.obj.exists(_._1 == " storeHash" ) => Extraction .extract[SourceBigCommerce ](value)
54
49
case value : JObject if value.obj.exists(_._1 == " projectID" ) => Extraction .extract[SourceBigQuery ](value)
@@ -61,8 +56,8 @@ object SourceInputSerializer extends Serializer[SourceInput] {
61
56
62
57
override def serialize (implicit format : Formats ): PartialFunction [Any , JValue ] = { case value : SourceInput =>
63
58
value match {
64
- case value : SourceDocker => Extraction .decompose(value)(format - this )
65
59
case value : SourceGA4BigQueryExport => Extraction .decompose(value)(format - this )
60
+ case value : SourceDocker => Extraction .decompose(value)(format - this )
66
61
case value : SourceCommercetools => Extraction .decompose(value)(format - this )
67
62
case value : SourceBigCommerce => Extraction .decompose(value)(format - this )
68
63
case value : SourceBigQuery => Extraction .decompose(value)(format - this )
0 commit comments