@coveo/platform-client 68.5.0 → 68.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Paginated } from '../../BaseInterfaces.js';
|
|
2
2
|
import { CampaignStatementGroupStatusType, ListStatementSortBy, PermanentStatementGroupStatusType, ResultRankingLocales, ResultRankingMatchOperators, ResultRankingsKind, ResultRankingsRuleTypes, ResultRankingsStatuses } from '../../Enums.js';
|
|
3
|
+
import { DetailedCondition } from '../Conditions/ConditionInterfaces.js';
|
|
3
4
|
export interface ResultRanking {
|
|
4
5
|
/**
|
|
5
6
|
* The unique identifier of the result ranking rule.
|
|
@@ -80,6 +81,12 @@ export interface ResultRankingProps {
|
|
|
80
81
|
* The ID of a mandatory condition to satisfy.
|
|
81
82
|
*/
|
|
82
83
|
reference: string;
|
|
84
|
+
/**
|
|
85
|
+
* The detailed version of the condition.
|
|
86
|
+
*/
|
|
87
|
+
detailed?: {
|
|
88
|
+
condition: DetailedCondition;
|
|
89
|
+
};
|
|
83
90
|
};
|
|
84
91
|
statementGroupId?: string;
|
|
85
92
|
associatedGroup?: ResultRankingAssociatedGroup;
|
|
@@ -223,6 +230,7 @@ interface CoreGetResultRankingParams extends Paginated {
|
|
|
223
230
|
*/
|
|
224
231
|
kind?: ResultRankingsKind;
|
|
225
232
|
}
|
|
233
|
+
export type ListResultRankingExpandOptions = 'condition.detailed';
|
|
226
234
|
export interface ListResultRankingParams extends CoreGetResultRankingParams {
|
|
227
235
|
sortBy?: ListStatementSortBy;
|
|
228
236
|
/**
|
|
@@ -239,6 +247,12 @@ export interface ListResultRankingParams extends CoreGetResultRankingParams {
|
|
|
239
247
|
* The rule status to allow in the results.
|
|
240
248
|
*/
|
|
241
249
|
ruleStatuses?: ResultRankingsStatuses[];
|
|
250
|
+
/**
|
|
251
|
+
* The related resources to expand in the response.
|
|
252
|
+
*
|
|
253
|
+
* Set to `condition.detailed` to include the detailed version of the condition alongside `condition.reference` in each result ranking condition.
|
|
254
|
+
*/
|
|
255
|
+
expand?: ListResultRankingExpandOptions[];
|
|
242
256
|
}
|
|
243
257
|
export interface CopyResultRankingRequest {
|
|
244
258
|
/**
|