Skip to content

Commit 51d88ec

Browse files
algolia-botmillotp
andcommitted
fix(specs): make the updateAt non-null in ingestion (generated)
algolia/api-clients-automation#4697 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
1 parent d0422c7 commit 51d88ec

File tree

7 files changed

+27
-27
lines changed

7 files changed

+27
-27
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import kotlinx.serialization.json.*
1212
* @param name Descriptive name for the resource.
1313
* @param input
1414
* @param createdAt Date of creation in RFC 3339 format.
15+
* @param updatedAt Date of last update in RFC 3339 format.
1516
* @param platform
1617
* @param owner Owner of the resource.
17-
* @param updatedAt Date of last update in RFC 3339 format.
1818
*/
1919
@Serializable
2020
public data class Authentication(
@@ -32,11 +32,11 @@ public data class Authentication(
3232
/** Date of creation in RFC 3339 format. */
3333
@SerialName(value = "createdAt") val createdAt: String,
3434

35+
/** Date of last update in RFC 3339 format. */
36+
@SerialName(value = "updatedAt") val updatedAt: String,
37+
3538
@SerialName(value = "platform") val platform: Platform? = null,
3639

3740
/** Owner of the resource. */
3841
@SerialName(value = "owner") val owner: String? = null,
39-
40-
/** Date of last update in RFC 3339 format. */
41-
@SerialName(value = "updatedAt") val updatedAt: String? = null,
4242
)

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import kotlinx.serialization.json.*
1212
* @param name Descriptive name for the resource.
1313
* @param input
1414
* @param createdAt Date of creation in RFC 3339 format.
15-
* @param owner Owner of the resource.
1615
* @param updatedAt Date of last update in RFC 3339 format.
16+
* @param owner Owner of the resource.
1717
* @param authenticationID Universally unique identifier (UUID) of an authentication resource.
1818
* @param transformationIDs
1919
*/
@@ -33,12 +33,12 @@ public data class Destination(
3333
/** Date of creation in RFC 3339 format. */
3434
@SerialName(value = "createdAt") val createdAt: String,
3535

36+
/** Date of last update in RFC 3339 format. */
37+
@SerialName(value = "updatedAt") val updatedAt: String,
38+
3639
/** Owner of the resource. */
3740
@SerialName(value = "owner") val owner: String? = null,
3841

39-
/** Date of last update in RFC 3339 format. */
40-
@SerialName(value = "updatedAt") val updatedAt: String? = null,
41-
4242
/** Universally unique identifier (UUID) of an authentication resource. */
4343
@SerialName(value = "authenticationID") val authenticationID: String? = null,
4444

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import kotlinx.serialization.json.*
1111
* @param type
1212
* @param name
1313
* @param createdAt Date of creation in RFC 3339 format.
14+
* @param updatedAt Date of last update in RFC 3339 format.
1415
* @param owner Owner of the resource.
1516
* @param input
1617
* @param authenticationID Universally unique identifier (UUID) of an authentication resource.
17-
* @param updatedAt Date of last update in RFC 3339 format.
1818
*/
1919
@Serializable
2020
public data class Source(
@@ -29,14 +29,14 @@ public data class Source(
2929
/** Date of creation in RFC 3339 format. */
3030
@SerialName(value = "createdAt") val createdAt: String,
3131

32+
/** Date of last update in RFC 3339 format. */
33+
@SerialName(value = "updatedAt") val updatedAt: String,
34+
3235
/** Owner of the resource. */
3336
@SerialName(value = "owner") val owner: String? = null,
3437

3538
@SerialName(value = "input") val input: SourceInput? = null,
3639

3740
/** Universally unique identifier (UUID) of an authentication resource. */
3841
@SerialName(value = "authenticationID") val authenticationID: String? = null,
39-
40-
/** Date of last update in RFC 3339 format. */
41-
@SerialName(value = "updatedAt") val updatedAt: String? = null,
4242
)

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import kotlinx.serialization.json.*
1212
* @param destinationID Universally unique identifier (UUID) of a destination resource.
1313
* @param enabled Whether the task is enabled.
1414
* @param createdAt Date of creation in RFC 3339 format.
15+
* @param updatedAt Date of last update in RFC 3339 format.
1516
* @param cron Cron expression for the task's schedule.
1617
* @param lastRun The last time the scheduled task ran in RFC 3339 format.
1718
* @param nextRun The next scheduled run of the task in RFC 3339 format.
@@ -23,7 +24,6 @@ import kotlinx.serialization.json.*
2324
* @param cursor Date of the last cursor in RFC 3339 format.
2425
* @param notifications
2526
* @param policies
26-
* @param updatedAt Date of last update in RFC 3339 format.
2727
*/
2828
@Serializable
2929
public data class Task(
@@ -43,6 +43,9 @@ public data class Task(
4343
/** Date of creation in RFC 3339 format. */
4444
@SerialName(value = "createdAt") val createdAt: String,
4545

46+
/** Date of last update in RFC 3339 format. */
47+
@SerialName(value = "updatedAt") val updatedAt: String,
48+
4649
/** Cron expression for the task's schedule. */
4750
@SerialName(value = "cron") val cron: String? = null,
4851

@@ -70,7 +73,4 @@ public data class Task(
7073
@SerialName(value = "notifications") val notifications: Notifications? = null,
7174

7275
@SerialName(value = "policies") val policies: Policies? = null,
73-
74-
/** Date of last update in RFC 3339 format. */
75-
@SerialName(value = "updatedAt") val updatedAt: String? = null,
7676
)

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ import kotlinx.serialization.json.*
1313
* @param trigger
1414
* @param enabled Whether the task is enabled.
1515
* @param createdAt Date of creation in RFC 3339 format.
16+
* @param updatedAt Date of last update in RFC 3339 format.
1617
* @param input
1718
* @param failureThreshold Maximum accepted percentage of failures for a task run to finish successfully.
1819
* @param action
1920
* @param cursor Date of the last cursor in RFC 3339 format.
2021
* @param notifications
2122
* @param policies
22-
* @param updatedAt Date of last update in RFC 3339 format.
2323
*/
2424
@Deprecated(message = "This schema is deprecated.")
2525
@Serializable
@@ -42,6 +42,9 @@ public data class TaskV1(
4242
/** Date of creation in RFC 3339 format. */
4343
@SerialName(value = "createdAt") val createdAt: String,
4444

45+
/** Date of last update in RFC 3339 format. */
46+
@SerialName(value = "updatedAt") val updatedAt: String,
47+
4548
@SerialName(value = "input") val input: TaskInput? = null,
4649

4750
/** Maximum accepted percentage of failures for a task run to finish successfully. */
@@ -55,7 +58,4 @@ public data class TaskV1(
5558
@SerialName(value = "notifications") val notifications: Notifications? = null,
5659

5760
@SerialName(value = "policies") val policies: Policies? = null,
58-
59-
/** Date of last update in RFC 3339 format. */
60-
@SerialName(value = "updatedAt") val updatedAt: String? = null,
6161
)

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import kotlinx.serialization.json.*
1111
* @param code The source code of the transformation.
1212
* @param name The uniquely identified name of your transformation.
1313
* @param createdAt Date of creation in RFC 3339 format.
14+
* @param updatedAt Date of last update in RFC 3339 format.
1415
* @param authenticationIDs The authentications associated with the current transformation.
1516
* @param description A descriptive name for your transformation of what it does.
1617
* @param owner Owner of the resource.
17-
* @param updatedAt Date of last update in RFC 3339 format.
1818
*/
1919
@Serializable
2020
public data class Transformation(
@@ -31,6 +31,9 @@ public data class Transformation(
3131
/** Date of creation in RFC 3339 format. */
3232
@SerialName(value = "createdAt") val createdAt: String,
3333

34+
/** Date of last update in RFC 3339 format. */
35+
@SerialName(value = "updatedAt") val updatedAt: String,
36+
3437
/** The authentications associated with the current transformation. */
3538
@SerialName(value = "authenticationIDs") val authenticationIDs: List<String>? = null,
3639

@@ -39,7 +42,4 @@ public data class Transformation(
3942

4043
/** Owner of the resource. */
4144
@SerialName(value = "owner") val owner: String? = null,
42-
43-
/** Date of last update in RFC 3339 format. */
44-
@SerialName(value = "updatedAt") val updatedAt: String? = null,
4545
)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import kotlinx.serialization.json.*
77
/**
88
* TransformationTryResponse
99
*
10-
* @param payloads The array of records returned by the transformation service.
10+
* @param payloads The array of stringified records returned by the transformation service.
1111
* @param error
1212
*/
1313
@Serializable
1414
public data class TransformationTryResponse(
1515

16-
/** The array of records returned by the transformation service. */
17-
@SerialName(value = "payloads") val payloads: List<JsonObject>,
16+
/** The array of stringified records returned by the transformation service. */
17+
@SerialName(value = "payloads") val payloads: List<String>,
1818

1919
@SerialName(value = "error") val error: TransformationError? = null,
2020
)

0 commit comments

Comments
 (0)