diff --git a/Sources/Ingestion/IngestionClient.swift b/Sources/Ingestion/IngestionClient.swift index 560c5560..8c603cd0 100644 --- a/Sources/Ingestion/IngestionClient.swift +++ b/Sources/Ingestion/IngestionClient.swift @@ -1634,8 +1634,8 @@ open class IngestionClient { /// - parameter itemsPerPage: (query) Number of items per page. (optional, default to 10) /// - parameter page: (query) Page number of the paginated API response. (optional) /// - parameter type: (query) Type of authentication resource to retrieve. (optional) - /// - parameter platform: (query) Ecommerce platform for which to retrieve authentication resources. (optional) - /// - parameter sort: (query) Property by which to sort the list of authentication resources. (optional) + /// - parameter platform: (query) Ecommerce platform for which to retrieve authentications. (optional) + /// - parameter sort: (query) Property by which to sort the list of authentications. (optional) /// - parameter order: (query) Sort order of the response, ascending or descending. (optional) /// - returns: ListAuthenticationsResponse @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) @@ -1677,9 +1677,9 @@ open class IngestionClient { // // - parameter type: (query) Type of authentication resource to retrieve. (optional) // - // - parameter platform: (query) Ecommerce platform for which to retrieve authentication resources. (optional) + // - parameter platform: (query) Ecommerce platform for which to retrieve authentications. (optional) // - // - parameter sort: (query) Property by which to sort the list of authentication resources. (optional) + // - parameter sort: (query) Property by which to sort the list of authentications. (optional) // // - parameter order: (query) Sort order of the response, ascending or descending. (optional) // - returns: RequestBuilder @@ -1720,6 +1720,7 @@ open class IngestionClient { /// - parameter page: (query) Page number of the paginated API response. (optional) /// - parameter type: (query) Destination type. (optional) /// - parameter authenticationID: (query) Authentication ID used by destinations. (optional) + /// - parameter transformationID: (query) Get the list of destinations used by a transformation. (optional) /// - parameter sort: (query) Property by which to sort the destinations. (optional) /// - parameter order: (query) Sort order of the response, ascending or descending. (optional) /// - returns: ListDestinationsResponse @@ -1729,6 +1730,7 @@ open class IngestionClient { page: Int? = nil, type: [DestinationType]? = nil, authenticationID: [String]? = nil, + transformationID: String? = nil, sort: DestinationSortKeys? = nil, order: OrderKeys? = nil, requestOptions: RequestOptions? = nil @@ -1738,6 +1740,7 @@ open class IngestionClient { page: page, type: type, authenticationID: authenticationID, + transformationID: transformationID, sort: sort, order: order, requestOptions: requestOptions @@ -1764,6 +1767,8 @@ open class IngestionClient { // // - parameter authenticationID: (query) Authentication ID used by destinations. (optional) // + // - parameter transformationID: (query) Get the list of destinations used by a transformation. (optional) + // // - parameter sort: (query) Property by which to sort the destinations. (optional) // // - parameter order: (query) Sort order of the response, ascending or descending. (optional) @@ -1774,6 +1779,7 @@ open class IngestionClient { page: Int? = nil, type: [DestinationType]? = nil, authenticationID: [String]? = nil, + transformationID: String? = nil, sort: DestinationSortKeys? = nil, order: OrderKeys? = nil, requestOptions userRequestOptions: RequestOptions? = nil @@ -1785,6 +1791,7 @@ open class IngestionClient { "page": page?.encodeToJSON(), "type": type?.encodeToJSON(), "authenticationID": authenticationID?.encodeToJSON(), + "transformationID": transformationID?.encodeToJSON(), "sort": sort?.encodeToJSON(), "order": order?.encodeToJSON(), ] @@ -2036,7 +2043,7 @@ open class IngestionClient { /// - parameter page: (query) Page number of the paginated API response. (optional) /// - parameter type: (query) Source type. Some sources require authentication. (optional) /// - parameter authenticationID: (query) Authentication IDs of the sources to retrieve. 'none' returns sources that - /// doesn't have an authentication resource. (optional) + /// doesn't have an authentication. (optional) /// - parameter sort: (query) Property by which to sort the list of sources. (optional) /// - parameter order: (query) Sort order of the response, ascending or descending. (optional) /// - returns: ListSourcesResponse @@ -2080,7 +2087,7 @@ open class IngestionClient { // - parameter type: (query) Source type. Some sources require authentication. (optional) // // - parameter authenticationID: (query) Authentication IDs of the sources to retrieve. 'none' returns sources that - // doesn't have an authentication resource. (optional) + // doesn't have an authentication. (optional) // // - parameter sort: (query) Property by which to sort the list of sources. (optional) // @@ -2333,14 +2340,14 @@ open class IngestionClient { /// - parameter itemsPerPage: (query) Number of items per page. (optional, default to 10) /// - parameter page: (query) Page number of the paginated API response. (optional) - /// - parameter sort: (query) Property by which to sort the list. (optional) + /// - parameter sort: (query) Property by which to sort the list of transformations. (optional) /// - parameter order: (query) Sort order of the response, ascending or descending. (optional) /// - returns: ListTransformationsResponse @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open func listTransformations( itemsPerPage: Int? = nil, page: Int? = nil, - sort: SortKeys? = nil, + sort: TransformationSortKeys? = nil, order: OrderKeys? = nil, requestOptions: RequestOptions? = nil ) async throws -> ListTransformationsResponse { @@ -2369,7 +2376,7 @@ open class IngestionClient { // // - parameter page: (query) Page number of the paginated API response. (optional) // - // - parameter sort: (query) Property by which to sort the list. (optional) + // - parameter sort: (query) Property by which to sort the list of transformations. (optional) // // - parameter order: (query) Sort order of the response, ascending or descending. (optional) // - returns: RequestBuilder @@ -2377,7 +2384,7 @@ open class IngestionClient { open func listTransformationsWithHTTPInfo( itemsPerPage: Int? = nil, page: Int? = nil, - sort: SortKeys? = nil, + sort: TransformationSortKeys? = nil, order: OrderKeys? = nil, requestOptions userRequestOptions: RequestOptions? = nil ) async throws -> Response { diff --git a/Sources/Ingestion/Models/AuthenticationSortKeys.swift b/Sources/Ingestion/Models/AuthenticationSortKeys.swift index 6082b500..d81395e8 100644 --- a/Sources/Ingestion/Models/AuthenticationSortKeys.swift +++ b/Sources/Ingestion/Models/AuthenticationSortKeys.swift @@ -6,10 +6,10 @@ import Foundation import Core #endif -/// Property by which to sort the list of authentication resources. +/// Property by which to sort the list of authentications. public enum AuthenticationSortKeys: String, Codable, CaseIterable { case name - case authType = "auth_type" + case type case platform case updatedAt case createdAt diff --git a/Sources/Ingestion/Models/SortKeys.swift b/Sources/Ingestion/Models/TransformationSortKeys.swift similarity index 63% rename from Sources/Ingestion/Models/SortKeys.swift rename to Sources/Ingestion/Models/TransformationSortKeys.swift index 7cf8e22a..6829be4d 100644 --- a/Sources/Ingestion/Models/SortKeys.swift +++ b/Sources/Ingestion/Models/TransformationSortKeys.swift @@ -6,12 +6,11 @@ import Foundation import Core #endif -/// Property by which to sort the list. -public enum SortKeys: String, Codable, CaseIterable { +/// Property by which to sort the list of transformations. +public enum TransformationSortKeys: String, Codable, CaseIterable { case name - case type case updatedAt case createdAt } -extension SortKeys: Hashable {} +extension TransformationSortKeys: Hashable {}