Skip to content

Commit 297b972

Browse files
algolia-botmillotp
andcommitted
fix(specs): filter run list by type (generated)
algolia/api-clients-automation#3577 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 5d87d3a commit 297b972

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Sources/Ingestion/IngestionClient.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1968,6 +1968,7 @@ open class IngestionClient {
19681968
/// - parameter itemsPerPage: (query) Number of items per page. (optional, default to 10)
19691969
/// - parameter page: (query) Page number of the paginated API response. (optional)
19701970
/// - parameter status: (query) Run status for filtering the list of task runs. (optional)
1971+
/// - parameter type: (query) Run type for filtering the list of task runs. (optional)
19711972
/// - parameter taskID: (query) Task ID for filtering the list of task runs. (optional)
19721973
/// - parameter sort: (query) Property by which to sort the list of task runs. (optional)
19731974
/// - parameter order: (query) Sort order of the response, ascending or descending. (optional)
@@ -1981,6 +1982,7 @@ open class IngestionClient {
19811982
itemsPerPage: Int? = nil,
19821983
page: Int? = nil,
19831984
status: [RunStatus]? = nil,
1985+
type: [RunType]? = nil,
19841986
taskID: String? = nil,
19851987
sort: RunSortKeys? = nil,
19861988
order: OrderKeys? = nil,
@@ -1992,6 +1994,7 @@ open class IngestionClient {
19921994
itemsPerPage: itemsPerPage,
19931995
page: page,
19941996
status: status,
1997+
type: type,
19951998
taskID: taskID,
19961999
sort: sort,
19972000
order: order,
@@ -2019,6 +2022,8 @@ open class IngestionClient {
20192022
//
20202023
// - parameter status: (query) Run status for filtering the list of task runs. (optional)
20212024
//
2025+
// - parameter type: (query) Run type for filtering the list of task runs. (optional)
2026+
//
20222027
// - parameter taskID: (query) Task ID for filtering the list of task runs. (optional)
20232028
//
20242029
// - parameter sort: (query) Property by which to sort the list of task runs. (optional)
@@ -2036,6 +2041,7 @@ open class IngestionClient {
20362041
itemsPerPage: Int? = nil,
20372042
page: Int? = nil,
20382043
status: [RunStatus]? = nil,
2044+
type: [RunType]? = nil,
20392045
taskID: String? = nil,
20402046
sort: RunSortKeys? = nil,
20412047
order: OrderKeys? = nil,
@@ -2049,6 +2055,7 @@ open class IngestionClient {
20492055
"itemsPerPage": itemsPerPage?.encodeToJSON(),
20502056
"page": page?.encodeToJSON(),
20512057
"status": status?.encodeToJSON(),
2058+
"type": type?.encodeToJSON(),
20522059
"taskID": taskID?.encodeToJSON(),
20532060
"sort": sort?.encodeToJSON(),
20542061
"order": order?.encodeToJSON(),

Sources/Ingestion/Models/RunType.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ public enum RunType: String, Codable, CaseIterable {
1111
case reindex
1212
case update
1313
case discover
14+
case validate
15+
case push
1416
}
1517

1618
extension RunType: Hashable {}

0 commit comments

Comments
 (0)