Skip to content

Commit 2eb4d85

Browse files
algolia-botmillotpshortcuts
committed
fix(specs): correct query params for ingestion [skip-bc] (generated)
algolia/api-clients-automation#3830 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]> Co-authored-by: shortcuts <[email protected]>
1 parent 47531a6 commit 2eb4d85

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

client/src/commonMain/kotlin/com/algolia/client/api/IngestionClient.kt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -626,8 +626,8 @@ public class IngestionClient(
626626
* @param itemsPerPage Number of items per page. (default to 10)
627627
* @param page Page number of the paginated API response.
628628
* @param type Type of authentication resource to retrieve.
629-
* @param platform Ecommerce platform for which to retrieve authentication resources.
630-
* @param sort Property by which to sort the list of authentication resources. (default to createdAt)
629+
* @param platform Ecommerce platform for which to retrieve authentications.
630+
* @param sort Property by which to sort the list of authentications. (default to createdAt)
631631
* @param order Sort order of the response, ascending or descending. (default to desc)
632632
* @param requestOptions additional request configuration.
633633
*/
@@ -661,11 +661,12 @@ public class IngestionClient(
661661
* @param page Page number of the paginated API response.
662662
* @param type Destination type.
663663
* @param authenticationID Authentication ID used by destinations.
664+
* @param transformationID Get the list of destinations used by a transformation.
664665
* @param sort Property by which to sort the destinations. (default to createdAt)
665666
* @param order Sort order of the response, ascending or descending. (default to desc)
666667
* @param requestOptions additional request configuration.
667668
*/
668-
public suspend fun listDestinations(itemsPerPage: Int? = null, page: Int? = null, type: List<DestinationType>? = null, authenticationID: List<String>? = null, sort: DestinationSortKeys? = null, order: OrderKeys? = null, requestOptions: RequestOptions? = null): ListDestinationsResponse {
669+
public suspend fun listDestinations(itemsPerPage: Int? = null, page: Int? = null, type: List<DestinationType>? = null, authenticationID: List<String>? = null, transformationID: String? = null, sort: DestinationSortKeys? = null, order: OrderKeys? = null, requestOptions: RequestOptions? = null): ListDestinationsResponse {
669670
val requestConfig = RequestConfig(
670671
method = RequestMethod.GET,
671672
path = listOf("1", "destinations"),
@@ -674,6 +675,7 @@ public class IngestionClient(
674675
page?.let { put("page", it) }
675676
type?.let { put("type", it.joinToString(",")) }
676677
authenticationID?.let { put("authenticationID", it.joinToString(",")) }
678+
transformationID?.let { put("transformationID", it) }
677679
sort?.let { put("sort", it) }
678680
order?.let { put("order", it) }
679681
},
@@ -774,7 +776,7 @@ public class IngestionClient(
774776
* @param itemsPerPage Number of items per page. (default to 10)
775777
* @param page Page number of the paginated API response.
776778
* @param type Source type. Some sources require authentication.
777-
* @param authenticationID Authentication IDs of the sources to retrieve. 'none' returns sources that doesn't have an authentication resource.
779+
* @param authenticationID Authentication IDs of the sources to retrieve. 'none' returns sources that doesn't have an authentication.
778780
* @param sort Property by which to sort the list of sources. (default to createdAt)
779781
* @param order Sort order of the response, ascending or descending. (default to desc)
780782
* @param requestOptions additional request configuration.
@@ -887,11 +889,11 @@ public class IngestionClient(
887889
* - editSettings
888890
* @param itemsPerPage Number of items per page. (default to 10)
889891
* @param page Page number of the paginated API response.
890-
* @param sort Property by which to sort the list. (default to desc)
892+
* @param sort Property by which to sort the list of transformations. (default to createdAt)
891893
* @param order Sort order of the response, ascending or descending. (default to desc)
892894
* @param requestOptions additional request configuration.
893895
*/
894-
public suspend fun listTransformations(itemsPerPage: Int? = null, page: Int? = null, sort: SortKeys? = null, order: OrderKeys? = null, requestOptions: RequestOptions? = null): ListTransformationsResponse {
896+
public suspend fun listTransformations(itemsPerPage: Int? = null, page: Int? = null, sort: TransformationSortKeys? = null, order: OrderKeys? = null, requestOptions: RequestOptions? = null): ListTransformationsResponse {
895897
val requestConfig = RequestConfig(
896898
method = RequestMethod.GET,
897899
path = listOf("1", "transformations"),

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ package com.algolia.client.model.ingestion
44
import kotlinx.serialization.*
55

66
/**
7-
* Property by which to sort the list of authentication resources.
7+
* Property by which to sort the list of authentications.
88
*/
99
@Serializable
1010
public enum class AuthenticationSortKeys(public val value: kotlin.String) {
1111

1212
@SerialName(value = "name")
1313
Name("name"),
1414

15-
@SerialName(value = "auth_type")
16-
AuthType("auth_type"),
15+
@SerialName(value = "type")
16+
Type("type"),
1717

1818
@SerialName(value = "platform")
1919
Platform("platform"),

client/src/commonMain/kotlin/com/algolia/client/model/ingestion/SortKeys.kt renamed to client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationSortKeys.kt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,14 @@ package com.algolia.client.model.ingestion
44
import kotlinx.serialization.*
55

66
/**
7-
* Property by which to sort the list.
7+
* Property by which to sort the list of transformations.
88
*/
99
@Serializable
10-
public enum class SortKeys(public val value: kotlin.String) {
10+
public enum class TransformationSortKeys(public val value: kotlin.String) {
1111

1212
@SerialName(value = "name")
1313
Name("name"),
1414

15-
@SerialName(value = "type")
16-
Type("type"),
17-
1815
@SerialName(value = "updatedAt")
1916
UpdatedAt("updatedAt"),
2017

0 commit comments

Comments
 (0)