Skip to content

Commit c3416d3

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 46bf93d commit c3416d3

File tree

3 files changed

+22
-16
lines changed

3 files changed

+22
-16
lines changed

Sources/Ingestion/IngestionClient.swift

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,8 +1634,8 @@ open class IngestionClient {
16341634
/// - parameter itemsPerPage: (query) Number of items per page. (optional, default to 10)
16351635
/// - parameter page: (query) Page number of the paginated API response. (optional)
16361636
/// - parameter type: (query) Type of authentication resource to retrieve. (optional)
1637-
/// - parameter platform: (query) Ecommerce platform for which to retrieve authentication resources. (optional)
1638-
/// - parameter sort: (query) Property by which to sort the list of authentication resources. (optional)
1637+
/// - parameter platform: (query) Ecommerce platform for which to retrieve authentications. (optional)
1638+
/// - parameter sort: (query) Property by which to sort the list of authentications. (optional)
16391639
/// - parameter order: (query) Sort order of the response, ascending or descending. (optional)
16401640
/// - returns: ListAuthenticationsResponse
16411641
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -1677,9 +1677,9 @@ open class IngestionClient {
16771677
//
16781678
// - parameter type: (query) Type of authentication resource to retrieve. (optional)
16791679
//
1680-
// - parameter platform: (query) Ecommerce platform for which to retrieve authentication resources. (optional)
1680+
// - parameter platform: (query) Ecommerce platform for which to retrieve authentications. (optional)
16811681
//
1682-
// - parameter sort: (query) Property by which to sort the list of authentication resources. (optional)
1682+
// - parameter sort: (query) Property by which to sort the list of authentications. (optional)
16831683
//
16841684
// - parameter order: (query) Sort order of the response, ascending or descending. (optional)
16851685
// - returns: RequestBuilder<ListAuthenticationsResponse>
@@ -1720,6 +1720,7 @@ open class IngestionClient {
17201720
/// - parameter page: (query) Page number of the paginated API response. (optional)
17211721
/// - parameter type: (query) Destination type. (optional)
17221722
/// - parameter authenticationID: (query) Authentication ID used by destinations. (optional)
1723+
/// - parameter transformationID: (query) Get the list of destinations used by a transformation. (optional)
17231724
/// - parameter sort: (query) Property by which to sort the destinations. (optional)
17241725
/// - parameter order: (query) Sort order of the response, ascending or descending. (optional)
17251726
/// - returns: ListDestinationsResponse
@@ -1729,6 +1730,7 @@ open class IngestionClient {
17291730
page: Int? = nil,
17301731
type: [DestinationType]? = nil,
17311732
authenticationID: [String]? = nil,
1733+
transformationID: String? = nil,
17321734
sort: DestinationSortKeys? = nil,
17331735
order: OrderKeys? = nil,
17341736
requestOptions: RequestOptions? = nil
@@ -1738,6 +1740,7 @@ open class IngestionClient {
17381740
page: page,
17391741
type: type,
17401742
authenticationID: authenticationID,
1743+
transformationID: transformationID,
17411744
sort: sort,
17421745
order: order,
17431746
requestOptions: requestOptions
@@ -1764,6 +1767,8 @@ open class IngestionClient {
17641767
//
17651768
// - parameter authenticationID: (query) Authentication ID used by destinations. (optional)
17661769
//
1770+
// - parameter transformationID: (query) Get the list of destinations used by a transformation. (optional)
1771+
//
17671772
// - parameter sort: (query) Property by which to sort the destinations. (optional)
17681773
//
17691774
// - parameter order: (query) Sort order of the response, ascending or descending. (optional)
@@ -1774,6 +1779,7 @@ open class IngestionClient {
17741779
page: Int? = nil,
17751780
type: [DestinationType]? = nil,
17761781
authenticationID: [String]? = nil,
1782+
transformationID: String? = nil,
17771783
sort: DestinationSortKeys? = nil,
17781784
order: OrderKeys? = nil,
17791785
requestOptions userRequestOptions: RequestOptions? = nil
@@ -1785,6 +1791,7 @@ open class IngestionClient {
17851791
"page": page?.encodeToJSON(),
17861792
"type": type?.encodeToJSON(),
17871793
"authenticationID": authenticationID?.encodeToJSON(),
1794+
"transformationID": transformationID?.encodeToJSON(),
17881795
"sort": sort?.encodeToJSON(),
17891796
"order": order?.encodeToJSON(),
17901797
]
@@ -2036,7 +2043,7 @@ open class IngestionClient {
20362043
/// - parameter page: (query) Page number of the paginated API response. (optional)
20372044
/// - parameter type: (query) Source type. Some sources require authentication. (optional)
20382045
/// - parameter authenticationID: (query) Authentication IDs of the sources to retrieve. 'none' returns sources that
2039-
/// doesn't have an authentication resource. (optional)
2046+
/// doesn't have an authentication. (optional)
20402047
/// - parameter sort: (query) Property by which to sort the list of sources. (optional)
20412048
/// - parameter order: (query) Sort order of the response, ascending or descending. (optional)
20422049
/// - returns: ListSourcesResponse
@@ -2080,7 +2087,7 @@ open class IngestionClient {
20802087
// - parameter type: (query) Source type. Some sources require authentication. (optional)
20812088
//
20822089
// - parameter authenticationID: (query) Authentication IDs of the sources to retrieve. 'none' returns sources that
2083-
// doesn't have an authentication resource. (optional)
2090+
// doesn't have an authentication. (optional)
20842091
//
20852092
// - parameter sort: (query) Property by which to sort the list of sources. (optional)
20862093
//
@@ -2333,14 +2340,14 @@ open class IngestionClient {
23332340

23342341
/// - parameter itemsPerPage: (query) Number of items per page. (optional, default to 10)
23352342
/// - parameter page: (query) Page number of the paginated API response. (optional)
2336-
/// - parameter sort: (query) Property by which to sort the list. (optional)
2343+
/// - parameter sort: (query) Property by which to sort the list of transformations. (optional)
23372344
/// - parameter order: (query) Sort order of the response, ascending or descending. (optional)
23382345
/// - returns: ListTransformationsResponse
23392346
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
23402347
open func listTransformations(
23412348
itemsPerPage: Int? = nil,
23422349
page: Int? = nil,
2343-
sort: SortKeys? = nil,
2350+
sort: TransformationSortKeys? = nil,
23442351
order: OrderKeys? = nil,
23452352
requestOptions: RequestOptions? = nil
23462353
) async throws -> ListTransformationsResponse {
@@ -2369,15 +2376,15 @@ open class IngestionClient {
23692376
//
23702377
// - parameter page: (query) Page number of the paginated API response. (optional)
23712378
//
2372-
// - parameter sort: (query) Property by which to sort the list. (optional)
2379+
// - parameter sort: (query) Property by which to sort the list of transformations. (optional)
23732380
//
23742381
// - parameter order: (query) Sort order of the response, ascending or descending. (optional)
23752382
// - returns: RequestBuilder<ListTransformationsResponse>
23762383

23772384
open func listTransformationsWithHTTPInfo(
23782385
itemsPerPage: Int? = nil,
23792386
page: Int? = nil,
2380-
sort: SortKeys? = nil,
2387+
sort: TransformationSortKeys? = nil,
23812388
order: OrderKeys? = nil,
23822389
requestOptions userRequestOptions: RequestOptions? = nil
23832390
) async throws -> Response<ListTransformationsResponse> {

Sources/Ingestion/Models/AuthenticationSortKeys.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Property by which to sort the list of authentication resources.
9+
/// Property by which to sort the list of authentications.
1010
public enum AuthenticationSortKeys: String, Codable, CaseIterable {
1111
case name
12-
case authType = "auth_type"
12+
case type
1313
case platform
1414
case updatedAt
1515
case createdAt

Sources/Ingestion/Models/SortKeys.swift renamed to Sources/Ingestion/Models/TransformationSortKeys.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Property by which to sort the list.
10-
public enum SortKeys: String, Codable, CaseIterable {
9+
/// Property by which to sort the list of transformations.
10+
public enum TransformationSortKeys: String, Codable, CaseIterable {
1111
case name
12-
case type
1312
case updatedAt
1413
case createdAt
1514
}
1615

17-
extension SortKeys: Hashable {}
16+
extension TransformationSortKeys: Hashable {}

0 commit comments

Comments
 (0)