Skip to content

Commit c4d5c59

Browse files
feat(specs): update try transformation specs for no-code (generated)
algolia/api-clients-automation#4974 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Mehmet Ali Gok <33124154+mehmetaligok@users.noreply.github.com>
1 parent b37372f commit c4d5c59

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationCreate.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import kotlinx.serialization.json.*
88
* API request body for creating a transformation.
99
*
1010
* @param name The uniquely identified name of your transformation.
11+
* @param code It is deprecated. Use the `input` field with proper `type` instead to specify the transformation code.
1112
* @param type
1213
* @param input
13-
* @param code It is deprecated. Use the `input` field with proper `type` instead to specify the transformation code.
1414
* @param description A descriptive name for your transformation of what it does.
1515
* @param authenticationIDs The authentications associated with the current transformation.
1616
*/
@@ -20,14 +20,14 @@ public data class TransformationCreate(
2020
/** The uniquely identified name of your transformation. */
2121
@SerialName(value = "name") val name: String,
2222

23-
@SerialName(value = "type") val type: TransformationType,
24-
25-
@SerialName(value = "input") val input: TransformationInput,
26-
2723
/** It is deprecated. Use the `input` field with proper `type` instead to specify the transformation code. */
2824
@Deprecated(message = "This property is deprecated.")
2925
@SerialName(value = "code") val code: String? = null,
3026

27+
@SerialName(value = "type") val type: TransformationType? = null,
28+
29+
@SerialName(value = "input") val input: TransformationInput? = null,
30+
3131
/** A descriptive name for your transformation of what it does. */
3232
@SerialName(value = "description") val description: String? = null,
3333

client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationTry.kt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,25 @@ import kotlinx.serialization.json.*
77
/**
88
* TransformationTry
99
*
10-
* @param code It is deprecated. Use the `input` field with proper `type` instead to specify the transformation code.
1110
* @param sampleRecord The record to apply the given code to.
11+
* @param code It is deprecated. Use the `input` field with proper `type` instead to specify the transformation code.
12+
* @param type
13+
* @param input
1214
* @param authentications
1315
*/
1416
@Serializable
1517
public data class TransformationTry(
1618

19+
/** The record to apply the given code to. */
20+
@SerialName(value = "sampleRecord") val sampleRecord: JsonObject,
21+
1722
/** It is deprecated. Use the `input` field with proper `type` instead to specify the transformation code. */
1823
@Deprecated(message = "This property is deprecated.")
19-
@SerialName(value = "code") val code: String,
24+
@SerialName(value = "code") val code: String? = null,
2025

21-
/** The record to apply the given code to. */
22-
@SerialName(value = "sampleRecord") val sampleRecord: JsonObject,
26+
@SerialName(value = "type") val type: TransformationType? = null,
27+
28+
@SerialName(value = "input") val input: TransformationInput? = null,
2329

2430
@SerialName(value = "authentications") val authentications: List<AuthenticationCreate>? = null,
2531
)

0 commit comments

Comments
 (0)