From 29d136adc68411bd4772c898caefad579b3a9b29 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Tue, 27 Aug 2024 09:30:51 +0000 Subject: [PATCH] feat(specs): push source type (generated) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/algolia/api-clients-automation/pull/3600 Co-authored-by: algolia-bot Co-authored-by: Clément Vannicatte --- .../kotlin/com/algolia/client/model/ingestion/Source.kt | 6 +++--- .../com/algolia/client/model/ingestion/SourceCreate.kt | 2 +- .../kotlin/com/algolia/client/model/ingestion/SourceType.kt | 5 ++++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/Source.kt b/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/Source.kt index ec8f7016..fd453038 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/Source.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/Source.kt @@ -10,8 +10,8 @@ import kotlinx.serialization.json.* * @param sourceID Universally uniqud identifier (UUID) of a source. * @param type * @param name - * @param input * @param createdAt Date of creation in RFC 3339 format. + * @param input * @param authenticationID Universally unique identifier (UUID) of an authentication resource. * @param updatedAt Date of last update in RFC 3339 format. */ @@ -25,11 +25,11 @@ public data class Source( @SerialName(value = "name") val name: String, - @SerialName(value = "input") val input: SourceInput, - /** Date of creation in RFC 3339 format. */ @SerialName(value = "createdAt") val createdAt: String, + @SerialName(value = "input") val input: SourceInput? = null, + /** Universally unique identifier (UUID) of an authentication resource. */ @SerialName(value = "authenticationID") val authenticationID: String? = null, diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/SourceCreate.kt b/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/SourceCreate.kt index e6716461..3322a4ff 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/SourceCreate.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/SourceCreate.kt @@ -20,7 +20,7 @@ public data class SourceCreate( /** Descriptive name of the source. */ @SerialName(value = "name") val name: String, - @SerialName(value = "input") val input: SourceInput, + @SerialName(value = "input") val input: SourceInput? = null, /** Universally unique identifier (UUID) of an authentication resource. */ @SerialName(value = "authenticationID") val authenticationID: String? = null, diff --git a/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/SourceType.kt b/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/SourceType.kt index cbee5bb3..6a8323a1 100644 --- a/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/SourceType.kt +++ b/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/SourceType.kt @@ -31,7 +31,10 @@ public enum class SourceType(public val value: kotlin.String) { Shopify("shopify"), @SerialName(value = "sfcc") - Sfcc("sfcc"); + Sfcc("sfcc"), + + @SerialName(value = "push") + Push("push"); override fun toString(): kotlin.String = value }