@coveo/platform-client 68.4.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.
package/dist/types/resources/MachineLearning/ModelDetailedInfo/ModelDetailedInfoInterfaces.d.ts
CHANGED
|
@@ -31,6 +31,10 @@ export interface ModelIssues {
|
|
|
31
31
|
* The recommended action to perform to resolve the error or limitation.
|
|
32
32
|
*/
|
|
33
33
|
troubleshoot: string;
|
|
34
|
+
/**
|
|
35
|
+
* The severity of the issue. ERROR indicates a critical failure, and WARNING indicates a non-critical issue (e.g., degraded/limited state).
|
|
36
|
+
*/
|
|
37
|
+
severity: 'ERROR' | 'WARNING';
|
|
34
38
|
}
|
|
35
39
|
export type ModelStatusInfo = MLModelStatusInfo & Required<Pick<MLModelStatusInfo, 'daysUntilArchival'>>;
|
|
36
40
|
export interface ModelWithDetails {
|
|
@@ -69,6 +73,14 @@ export interface ModelWithDetails {
|
|
|
69
73
|
* @example 1691762520000
|
|
70
74
|
*/
|
|
71
75
|
nextModelUpdateTime: number;
|
|
76
|
+
/**
|
|
77
|
+
* The timestamp of the last query received by the model, in epoch milliseconds
|
|
78
|
+
*/
|
|
79
|
+
lastQueryDate?: number;
|
|
80
|
+
/**
|
|
81
|
+
* The completion timestamp of the last model build, in epoch milliseconds.
|
|
82
|
+
*/
|
|
83
|
+
lastBuildCompletedDate?: number;
|
|
72
84
|
/**
|
|
73
85
|
* The description and troubleshooting messages for a model error or limitation.
|
|
74
86
|
*/
|
|
@@ -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
|
/**
|