Skip to content

Commit 64db63f

Browse files
algolia-botben-kalmusClaraMuller
committed
feat(specs): add compositions deduplication setting (generated)
algolia/api-clients-automation#5418 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Ben Kalmus <[email protected]> Co-authored-by: Clara Muller <[email protected]>
1 parent 7f7c302 commit 64db63f

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2+
3+
/**
4+
* Deduplication positioning configures how a duplicate result should be resolved between an injected item and main search results. Current configuration supports: - \'highest\': always select the item in the highest position, and remove duplicates that appear lower in the results. - \'highestInjected\': duplicate result will be moved to its highest possible injected position, but not higher. If a duplicate appears higher in main search results, it will be removed to stay it\'s intended group position (which could be lower than main).
5+
*/
6+
export type DedupPositioning = 'highest' | 'highestInjected';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2+
3+
import type { DedupPositioning } from './dedupPositioning';
4+
5+
/**
6+
* Deduplication configures the methods used to resolve duplicate items between main search results and injected group results.
7+
*/
8+
export type Deduplication = {
9+
positioning: DedupPositioning;
10+
};

packages/composition/model/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export * from './compositionSource';
3131
export * from './compositionSourceSearch';
3232
export * from './compositionsSearchResponse';
3333
export * from './condition';
34+
export * from './deduplication';
35+
export * from './dedupPositioning';
3436
export * from './deleteCompositionAction';
3537
export * from './deleteCompositionRuleAction';
3638
export * from './distinct';

packages/composition/model/injection.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
22

3+
import type { Deduplication } from './deduplication';
34
import type { InjectedItem } from './injectedItem';
45
import type { Main } from './main';
56

@@ -10,4 +11,6 @@ export type Injection = {
1011
* list of injected items of the current Composition.
1112
*/
1213
injectedItems?: Array<InjectedItem> | undefined;
14+
15+
deduplication?: Deduplication | undefined;
1316
};

0 commit comments

Comments
 (0)