Skip to content

Commit 9adf819

Browse files
algolia-botmillotp
andcommitted
fix(specs): proper title with linter (generated)
algolia/api-clients-automation#3444 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent c898247 commit 9adf819

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+321
-179
lines changed

Sources/Abtesting/Models/FilterEffectsEmptySearch.swift renamed to Sources/Abtesting/Models/EmptySearchFilter.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Foundation
77
#endif
88

99
/// Empty searches removed from the A/B test as a result of configuration settings.
10-
public struct FilterEffectsEmptySearch: Codable, JSONEncodable {
10+
public struct EmptySearchFilter: Codable, JSONEncodable {
1111
/// Number of users removed from the A/B test.
1212
public var usersCount: Int?
1313
/// Number of tracked searches removed from the A/B test.
@@ -32,14 +32,14 @@ public struct FilterEffectsEmptySearch: Codable, JSONEncodable {
3232
}
3333
}
3434

35-
extension FilterEffectsEmptySearch: Equatable {
36-
public static func ==(lhs: FilterEffectsEmptySearch, rhs: FilterEffectsEmptySearch) -> Bool {
35+
extension EmptySearchFilter: Equatable {
36+
public static func ==(lhs: EmptySearchFilter, rhs: EmptySearchFilter) -> Bool {
3737
lhs.usersCount == rhs.usersCount &&
3838
lhs.trackedSearchesCount == rhs.trackedSearchesCount
3939
}
4040
}
4141

42-
extension FilterEffectsEmptySearch: Hashable {
42+
extension EmptySearchFilter: Hashable {
4343
public func hash(into hasher: inout Hasher) {
4444
hasher.combine(self.usersCount?.hashValue)
4545
hasher.combine(self.trackedSearchesCount?.hashValue)

Sources/Abtesting/Models/FilterEffects.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import Foundation
88

99
/// A/B test filter effects resulting from configuration settings.
1010
public struct FilterEffects: Codable, JSONEncodable {
11-
public var outliers: FilterEffectsOutliers?
12-
public var emptySearch: FilterEffectsEmptySearch?
11+
public var outliers: OutliersFilter?
12+
public var emptySearch: EmptySearchFilter?
1313

14-
public init(outliers: FilterEffectsOutliers? = nil, emptySearch: FilterEffectsEmptySearch? = nil) {
14+
public init(outliers: OutliersFilter? = nil, emptySearch: EmptySearchFilter? = nil) {
1515
self.outliers = outliers
1616
self.emptySearch = emptySearch
1717
}

Sources/Abtesting/Models/FilterEffectsOutliers.swift renamed to Sources/Abtesting/Models/OutliersFilter.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Foundation
77
#endif
88

99
/// Outliers removed from the A/B test as a result of configuration settings.
10-
public struct FilterEffectsOutliers: Codable, JSONEncodable {
10+
public struct OutliersFilter: Codable, JSONEncodable {
1111
/// Number of users removed from the A/B test.
1212
public var usersCount: Int?
1313
/// Number of tracked searches removed from the A/B test.
@@ -32,14 +32,14 @@ public struct FilterEffectsOutliers: Codable, JSONEncodable {
3232
}
3333
}
3434

35-
extension FilterEffectsOutliers: Equatable {
36-
public static func ==(lhs: FilterEffectsOutliers, rhs: FilterEffectsOutliers) -> Bool {
35+
extension OutliersFilter: Equatable {
36+
public static func ==(lhs: OutliersFilter, rhs: OutliersFilter) -> Bool {
3737
lhs.usersCount == rhs.usersCount &&
3838
lhs.trackedSearchesCount == rhs.trackedSearchesCount
3939
}
4040
}
4141

42-
extension FilterEffectsOutliers: Hashable {
42+
extension OutliersFilter: Hashable {
4343
public func hash(into hasher: inout Hasher) {
4444
hasher.combine(self.usersCount?.hashValue)
4545
hasher.combine(self.trackedSearchesCount?.hashValue)

Sources/Analytics/Models/ClickPositionsInner.swift renamed to Sources/Analytics/Models/ClickPosition.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Foundation
77
#endif
88

99
/// Click position.
10-
public struct ClickPositionsInner: Codable, JSONEncodable {
10+
public struct ClickPosition: Codable, JSONEncodable {
1111
/// Range of positions in the search results, using the pattern `[start,end]`. For positions 11 and up, click
1212
/// events are summed over the specified range. `-1` indicates the end of the list of search results.
1313
public var position: [Int]?
@@ -33,14 +33,14 @@ public struct ClickPositionsInner: Codable, JSONEncodable {
3333
}
3434
}
3535

36-
extension ClickPositionsInner: Equatable {
37-
public static func ==(lhs: ClickPositionsInner, rhs: ClickPositionsInner) -> Bool {
36+
extension ClickPosition: Equatable {
37+
public static func ==(lhs: ClickPosition, rhs: ClickPosition) -> Bool {
3838
lhs.position == rhs.position &&
3939
lhs.clickCount == rhs.clickCount
4040
}
4141
}
4242

43-
extension ClickPositionsInner: Hashable {
43+
extension ClickPosition: Hashable {
4444
public func hash(into hasher: inout Hasher) {
4545
hasher.combine(self.position?.hashValue)
4646
hasher.combine(self.clickCount?.hashValue)

Sources/Analytics/Models/GetClickPositionsResponse.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import Foundation
88

99
public struct GetClickPositionsResponse: Codable, JSONEncodable {
1010
/// List of positions in the search results and clicks associated with this search.
11-
public var positions: [ClickPositionsInner]
11+
public var positions: [ClickPosition]
1212

13-
public init(positions: [ClickPositionsInner]) {
13+
public init(positions: [ClickPosition]) {
1414
self.positions = positions
1515
}
1616

Sources/Analytics/Models/TopSearchWithAnalytics.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public struct TopSearchWithAnalytics: Codable, JSONEncodable {
1818
/// search requests with `clickAnalytics` set to true.
1919
public var averageClickPosition: Double?
2020
/// List of positions in the search results and clicks associated with this search.
21-
public var clickPositions: [ClickPositionsInner]
21+
public var clickPositions: [ClickPosition]
2222
/// Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the
2323
/// number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to
2424
/// true.
@@ -37,7 +37,7 @@ public struct TopSearchWithAnalytics: Codable, JSONEncodable {
3737
count: Int,
3838
clickThroughRate: Double?,
3939
averageClickPosition: Double?,
40-
clickPositions: [ClickPositionsInner],
40+
clickPositions: [ClickPosition],
4141
conversionRate: Double?,
4242
trackedSearchCount: Int,
4343
clickCount: Int,

Sources/Analytics/Models/TopSearchWithRevenueAnalytics.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public struct TopSearchWithRevenueAnalytics: Codable, JSONEncodable {
1818
/// search requests with `clickAnalytics` set to true.
1919
public var averageClickPosition: Double?
2020
/// List of positions in the search results and clicks associated with this search.
21-
public var clickPositions: [ClickPositionsInner]
21+
public var clickPositions: [ClickPosition]
2222
/// Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the
2323
/// number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to
2424
/// true.
@@ -50,7 +50,7 @@ public struct TopSearchWithRevenueAnalytics: Codable, JSONEncodable {
5050
count: Int,
5151
clickThroughRate: Double?,
5252
averageClickPosition: Double?,
53-
clickPositions: [ClickPositionsInner],
53+
clickPositions: [ClickPosition],
5454
conversionRate: Double?,
5555
trackedSearchCount: Int,
5656
clickCount: Int,

Sources/Ingestion/Models/DockerStreamsInput.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9+
/// The selected streams of a singer or airbyte connector.
910
public struct DockerStreamsInput: Codable, JSONEncodable {
1011
public var streams: AnyCodable
1112

Sources/Ingestion/Models/TransformationTryResponseError.swift renamed to Sources/Ingestion/Models/TransformationError.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Foundation
77
#endif
88

99
/// The error if the transformation failed.
10-
public struct TransformationTryResponseError: Codable, JSONEncodable {
10+
public struct TransformationError: Codable, JSONEncodable {
1111
/// The error status code.
1212
public var code: Int?
1313
/// A descriptive message explaining the failure.
@@ -32,14 +32,14 @@ public struct TransformationTryResponseError: Codable, JSONEncodable {
3232
}
3333
}
3434

35-
extension TransformationTryResponseError: Equatable {
36-
public static func ==(lhs: TransformationTryResponseError, rhs: TransformationTryResponseError) -> Bool {
35+
extension TransformationError: Equatable {
36+
public static func ==(lhs: TransformationError, rhs: TransformationError) -> Bool {
3737
lhs.code == rhs.code &&
3838
lhs.message == rhs.message
3939
}
4040
}
4141

42-
extension TransformationTryResponseError: Hashable {
42+
extension TransformationError: Hashable {
4343
public func hash(into hasher: inout Hasher) {
4444
hasher.combine(self.code?.hashValue)
4545
hasher.combine(self.message?.hashValue)

Sources/Ingestion/Models/TransformationTryResponse.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import Foundation
99
public struct TransformationTryResponse: Codable, JSONEncodable {
1010
/// The array of records returned by the transformation service.
1111
public var payloads: [AnyCodable]
12-
public var error: TransformationTryResponseError?
12+
public var error: TransformationError?
1313

14-
public init(payloads: [AnyCodable], error: TransformationTryResponseError? = nil) {
14+
public init(payloads: [AnyCodable], error: TransformationError? = nil) {
1515
self.payloads = payloads
1616
self.error = error
1717
}

0 commit comments

Comments
 (0)