@coveo/platform-client 41.0.0 → 42.0.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.
|
@@ -49,7 +49,7 @@ export interface CreateCatalogConfigurationModel {
|
|
|
49
49
|
/**
|
|
50
50
|
* The configuration mapping of index fields to standard commerce fields
|
|
51
51
|
*/
|
|
52
|
-
fieldsMapping
|
|
52
|
+
fieldsMapping?: CatalogFieldsMapping;
|
|
53
53
|
}
|
|
54
54
|
export interface CatalogConfigurationModel {
|
|
55
55
|
/**
|
|
@@ -75,11 +75,11 @@ export interface CatalogConfigurationModel {
|
|
|
75
75
|
/**
|
|
76
76
|
* The configuration mapping of index fields to standard commerce fields
|
|
77
77
|
*/
|
|
78
|
-
fieldsMapping
|
|
78
|
+
fieldsMapping?: CatalogFieldsMapping;
|
|
79
79
|
/**
|
|
80
80
|
* Catalogs associated to the configuration
|
|
81
81
|
*/
|
|
82
|
-
associatedCatalogs
|
|
82
|
+
associatedCatalogs?: IAssociatedCatalogModel[];
|
|
83
83
|
}
|
|
84
84
|
export interface IAssociatedCatalogModel {
|
|
85
85
|
/**
|
|
@@ -187,15 +187,47 @@ export interface CatalogModel extends BaseCatalogModel {
|
|
|
187
187
|
configuration?: CatalogConfigurationModel;
|
|
188
188
|
}
|
|
189
189
|
export type CreateCatalogModel = BaseCatalogModel & ({
|
|
190
|
+
/**
|
|
191
|
+
* @deprecated use `configuration.product` instead.
|
|
192
|
+
*/
|
|
190
193
|
product?: CreateProductHierarchyModel;
|
|
194
|
+
/**
|
|
195
|
+
* @deprecated use `configuration.variant` instead.
|
|
196
|
+
*/
|
|
191
197
|
variant?: CreateVariantHierarchyModel;
|
|
198
|
+
/**
|
|
199
|
+
* @deprecated use `configuration.availability` instead.
|
|
200
|
+
*/
|
|
192
201
|
availability?: CreateAvailabilityHierarchyModel;
|
|
202
|
+
/**
|
|
203
|
+
* The related catalog configuration id
|
|
204
|
+
*/
|
|
193
205
|
catalogConfigurationId?: never;
|
|
206
|
+
/**
|
|
207
|
+
* The catalog configuration
|
|
208
|
+
*/
|
|
209
|
+
configuration: CreateCatalogConfigurationModel;
|
|
194
210
|
} | {
|
|
211
|
+
/**
|
|
212
|
+
* @deprecated use `configuration.product` instead.
|
|
213
|
+
*/
|
|
195
214
|
product?: never;
|
|
215
|
+
/**
|
|
216
|
+
* @deprecated use `configuration.variant` instead.
|
|
217
|
+
*/
|
|
196
218
|
variant?: never;
|
|
219
|
+
/**
|
|
220
|
+
* @deprecated use `configuration.availability` instead.
|
|
221
|
+
*/
|
|
197
222
|
availability?: never;
|
|
223
|
+
/**
|
|
224
|
+
* The related catalog configuration id
|
|
225
|
+
*/
|
|
198
226
|
catalogConfigurationId: string;
|
|
227
|
+
/**
|
|
228
|
+
* The catalog configuration
|
|
229
|
+
*/
|
|
230
|
+
configuration?: never;
|
|
199
231
|
});
|
|
200
232
|
export interface FieldsSuggestionsQueryModel {
|
|
201
233
|
/**
|
package/dist/types/resources/MachineLearning/ModelInformation/ModelInformationInterfaces.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export interface MLModelInfo<T extends MLModelTypeInfo = never> {
|
|
|
2
2
|
id: string;
|
|
3
3
|
info?: T;
|
|
4
4
|
}
|
|
5
|
-
export type MLModelTypeInfo = ModelInformationART | ModelInformationCC | ModelInformationDNE | ModelInformationER | ModelInformationPR | ModelInformationQS |
|
|
5
|
+
export type MLModelTypeInfo = ModelInformationART | ModelInformationCC | ModelInformationDNE | ModelInformationER | ModelInformationPR | ModelInformationQS | ModelInformationSmartSnippets;
|
|
6
6
|
export interface MetaInfo {
|
|
7
7
|
modelName: string;
|
|
8
8
|
version: string;
|
|
@@ -183,17 +183,11 @@ export interface ModelInformationQS {
|
|
|
183
183
|
featureSelectLog: FeatureSelectLog;
|
|
184
184
|
[key: string]: any;
|
|
185
185
|
}
|
|
186
|
-
export interface
|
|
186
|
+
export interface MetaInfoSmartSnippets extends MetaInfo {
|
|
187
187
|
modelId: string;
|
|
188
188
|
engineName: string;
|
|
189
189
|
modelSize: string;
|
|
190
190
|
}
|
|
191
|
-
export interface BuildingStatsSS {
|
|
192
|
-
documentCount: number;
|
|
193
|
-
snippetCount: number;
|
|
194
|
-
headerCount: number;
|
|
195
|
-
meanSnippetLength: number;
|
|
196
|
-
}
|
|
197
191
|
/**
|
|
198
192
|
* Snippet details per document
|
|
199
193
|
*/
|
|
@@ -201,8 +195,6 @@ export interface SnippetsPerDocument {
|
|
|
201
195
|
min: number;
|
|
202
196
|
max: number;
|
|
203
197
|
mean: number;
|
|
204
|
-
median: number;
|
|
205
|
-
p95: number;
|
|
206
198
|
}
|
|
207
199
|
export interface StatsSmartSnippets {
|
|
208
200
|
/**
|
|
@@ -238,16 +230,29 @@ export interface StatsSmartSnippets {
|
|
|
238
230
|
*/
|
|
239
231
|
snippetsPerDocument: SnippetsPerDocument;
|
|
240
232
|
}
|
|
241
|
-
export interface
|
|
233
|
+
export interface BuildingStatsSmartSnippets extends StatsSmartSnippets {
|
|
234
|
+
/**
|
|
235
|
+
* Number of documents with HTML headers
|
|
236
|
+
*/
|
|
237
|
+
headerCount: number;
|
|
238
|
+
/**
|
|
239
|
+
* Average number of words per snippet
|
|
240
|
+
*/
|
|
241
|
+
meanSnippetLength: number;
|
|
242
|
+
/**
|
|
243
|
+
* Additional stats related to each source
|
|
244
|
+
*/
|
|
245
|
+
statsPerSource: StatsPerSource[];
|
|
246
|
+
}
|
|
247
|
+
export interface StatsPerSource extends StatsSmartSnippets {
|
|
242
248
|
/**
|
|
243
|
-
*
|
|
249
|
+
* Name of the source
|
|
244
250
|
*/
|
|
245
|
-
|
|
251
|
+
sourceName: string;
|
|
246
252
|
}
|
|
247
|
-
export interface
|
|
248
|
-
metaInfo:
|
|
249
|
-
modelBuildingStats:
|
|
250
|
-
preparationStats: PreparationStatsSS;
|
|
253
|
+
export interface ModelInformationSmartSnippets {
|
|
254
|
+
metaInfo: MetaInfoSmartSnippets;
|
|
255
|
+
modelBuildingStats: BuildingStatsSmartSnippets;
|
|
251
256
|
}
|
|
252
257
|
export interface DatasetFieldDetails {
|
|
253
258
|
numSamples: number;
|