Skip to content

Commit

Permalink
fix(specs): remove private beta endpoint from recommend [skip-bc] (ge…
Browse files Browse the repository at this point in the history
…nerated)

algolia/api-clients-automation#4110

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Nov 15, 2024
1 parent 083a522 commit 4d42a18
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 145 deletions.
7 changes: 0 additions & 7 deletions Sources/Recommend/Models/RecommendationsRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public enum RecommendationsRequest: Codable, JSONEncodable, AbstractEncodable {
case trendingItemsQuery(TrendingItemsQuery)
case trendingFacetsQuery(TrendingFacetsQuery)
case lookingSimilarQuery(LookingSimilarQuery)
case recommendedForYouQuery(RecommendedForYouQuery)

public func encode(to encoder: Encoder) throws {
var container = encoder.singleValueContainer()
Expand All @@ -27,8 +26,6 @@ public enum RecommendationsRequest: Codable, JSONEncodable, AbstractEncodable {
try container.encode(value)
case let .lookingSimilarQuery(value):
try container.encode(value)
case let .recommendedForYouQuery(value):
try container.encode(value)
}
}

Expand All @@ -44,8 +41,6 @@ public enum RecommendationsRequest: Codable, JSONEncodable, AbstractEncodable {
self = .trendingFacetsQuery(value)
} else if let value = try? container.decode(LookingSimilarQuery.self) {
self = .lookingSimilarQuery(value)
} else if let value = try? container.decode(RecommendedForYouQuery.self) {
self = .recommendedForYouQuery(value)
} else {
throw DecodingError.typeMismatch(
Self.Type.self,
Expand All @@ -69,8 +64,6 @@ public enum RecommendationsRequest: Codable, JSONEncodable, AbstractEncodable {
value as TrendingFacetsQuery
case let .lookingSimilarQuery(value):
value as LookingSimilarQuery
case let .recommendedForYouQuery(value):
value as RecommendedForYouQuery
}
}
}
Expand Down
44 changes: 0 additions & 44 deletions Sources/Recommend/Models/RecommendedForYou.swift

This file was deleted.

14 changes: 0 additions & 14 deletions Sources/Recommend/Models/RecommendedForYouModel.swift

This file was deleted.

80 changes: 0 additions & 80 deletions Sources/Recommend/Models/RecommendedForYouQuery.swift

This file was deleted.

0 comments on commit 4d42a18

Please sign in to comment.