@@ -182,6 +182,7 @@ public struct MainInjectionQueryParameters: Codable, JSONEncodable {
182182 public var hitsPerPage : Int ?
183183 /// Maximum number of facet values to return for each facet.
184184 public var maxValuesPerFacet : Int ?
185+ public var renderingContent : CompositionRenderingContent ?
185186 /// Order in which to retrieve facet values - `count`. Facet values are retrieved by decreasing count. The count
186187 /// is the number of matching records containing this facet value - `alpha`. Retrieve facet values alphabetically
187188 /// This setting doesn't influence how facet values are displayed in your UI (see `renderingContent`). For more
@@ -244,6 +245,7 @@ public struct MainInjectionQueryParameters: Codable, JSONEncodable {
244245 facets: [ String ] ? = nil ,
245246 hitsPerPage: Int ? = nil ,
246247 maxValuesPerFacet: Int ? = nil ,
248+ renderingContent: CompositionRenderingContent ? = nil ,
247249 sortFacetValuesBy: String ? = nil ,
248250 sumOrFiltersScores: Bool ? = nil
249251 ) {
@@ -298,6 +300,7 @@ public struct MainInjectionQueryParameters: Codable, JSONEncodable {
298300 self . facets = facets
299301 self . hitsPerPage = hitsPerPage
300302 self . maxValuesPerFacet = maxValuesPerFacet
303+ self . renderingContent = renderingContent
301304 self . sortFacetValuesBy = sortFacetValuesBy
302305 self . sumOrFiltersScores = sumOrFiltersScores
303306 }
@@ -354,6 +357,7 @@ public struct MainInjectionQueryParameters: Codable, JSONEncodable {
354357 case facets
355358 case hitsPerPage
356359 case maxValuesPerFacet
360+ case renderingContent
357361 case sortFacetValuesBy
358362 case sumOrFiltersScores
359363 }
@@ -419,6 +423,7 @@ public struct MainInjectionQueryParameters: Codable, JSONEncodable {
419423 try container. encodeIfPresent ( self . facets, forKey: . facets)
420424 try container. encodeIfPresent ( self . hitsPerPage, forKey: . hitsPerPage)
421425 try container. encodeIfPresent ( self . maxValuesPerFacet, forKey: . maxValuesPerFacet)
426+ try container. encodeIfPresent ( self . renderingContent, forKey: . renderingContent)
422427 try container. encodeIfPresent ( self . sortFacetValuesBy, forKey: . sortFacetValuesBy)
423428 try container. encodeIfPresent ( self . sumOrFiltersScores, forKey: . sumOrFiltersScores)
424429 }
@@ -477,6 +482,7 @@ extension MainInjectionQueryParameters: Equatable {
477482 lhs. facets == rhs. facets &&
478483 lhs. hitsPerPage == rhs. hitsPerPage &&
479484 lhs. maxValuesPerFacet == rhs. maxValuesPerFacet &&
485+ lhs. renderingContent == rhs. renderingContent &&
480486 lhs. sortFacetValuesBy == rhs. sortFacetValuesBy &&
481487 lhs. sumOrFiltersScores == rhs. sumOrFiltersScores
482488 }
@@ -535,6 +541,7 @@ extension MainInjectionQueryParameters: Hashable {
535541 hasher. combine ( self . facets? . hashValue)
536542 hasher. combine ( self . hitsPerPage? . hashValue)
537543 hasher. combine ( self . maxValuesPerFacet? . hashValue)
544+ hasher. combine ( self . renderingContent? . hashValue)
538545 hasher. combine ( self . sortFacetValuesBy? . hashValue)
539546 hasher. combine ( self . sumOrFiltersScores? . hashValue)
540547 }
0 commit comments