@coveo/platform-client 48.5.1 → 49.1.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.
@@ -8,4 +8,10 @@ export interface IAPRConfigurationModel {
8
8
  * The model display name in the Coveo Administration console.
9
9
  */
10
10
  modelDisplayName: string;
11
+ /**
12
+ * The trackingIds that usage analytics events must contain for the model to use those events in its learning process. The model will use an event if it contains at least one of the specified IDs
13
+ *
14
+ * @Example: [ "sport" ]
15
+ */
16
+ trackingIds: string[];
11
17
  }
@@ -37,4 +37,10 @@ export interface PQSConfigurationModel {
37
37
  * The filter to apply to the 'Click' and 'Search' event dimensions of the UA data to learn from when rebuilding the model.
38
38
  */
39
39
  searchEventFilter?: string;
40
+ /**
41
+ * The trackingIds that usage analytics events must contain for the model to use those events in its learning process. The model will use an event if it contains at least one of the specified IDs
42
+ *
43
+ * @Example: [ "sport" ]
44
+ */
45
+ trackingIds: string[];
40
46
  }
@@ -36,7 +36,7 @@ export interface SmartSnippetsConfigurationModel {
36
36
  */
37
37
  documentTypes?: DocumentType[];
38
38
  }
39
- export type SmartSnippetsDocumentRequirementStatus = 'OK' | 'INSUFFICIENT_DOCUMENTS';
39
+ export type SmartSnippetsDocumentRequirementStatus = 'OK' | 'INSUFFICIENT_DOCUMENTS' | 'NB_OF_DOCUMENTS_OVER_LIMIT';
40
40
  export interface SmartSnippetsDocumentGroupPreviewParams {
41
41
  /**
42
42
  * The sources to consider.
@@ -54,28 +54,42 @@ export interface SmartSnippetsDocumentGroupPreviewParams {
54
54
  export interface SmartSnippetsDocumentGroupPreview {
55
55
  /**
56
56
  * The query that was used to fetch document information.
57
+ *
58
+ * @Example @source==("Salesforce Notifier")
57
59
  */
58
60
  query: string;
59
61
  /**
60
- * Status indicating whether there are enough candidates for learning.
62
+ * @Deprecated use `numberOfDocumentsInSources` instead
61
63
  */
62
- documentRequirementStatus: SmartSnippetsDocumentRequirementStatus;
64
+ numberOfDocuments: number;
63
65
  /**
64
- * The total number of documents in all sources.
66
+ * The total number of documents in the selected sources.
65
67
  */
66
- numberOfDocuments: number;
68
+ numberOfDocumentsInSources: number;
69
+ /**
70
+ * The number of documents that are candidates for learning.
71
+ */
72
+ numberOfValidDocuments: number;
67
73
  /**
68
- * The number of documents that match the conditions.
74
+ * @Deprecated use `numberOfDocumentsInSourcesMatchingFilters` instead
69
75
  */
70
76
  numberOfDocumentsMatchingConditions: number;
71
77
  /**
72
- * The number of documents that match the conditions and have a permanent id.
78
+ * The number of documents in the selected sources that match the conditions.
79
+ */
80
+ numberOfDocumentsInSourcesMatchingFilters: number;
81
+ /**
82
+ * @Deprecated use `numberOfDocumentsInSourcesMatchingFiltersWithPermanentId` instead
73
83
  */
74
84
  numberOfDocumentsWithPermanentId: number;
75
85
  /**
76
- * The number of documents that are candidates for learning.
86
+ * The number of documents in the selected sources that match the conditions and have a permanentid
77
87
  */
78
- numberOfValidDocuments: number;
88
+ numberOfDocumentsInSourcesMatchingFiltersWithPermanentId: number;
89
+ /**
90
+ * Status for the number of required documents to build the model.
91
+ */
92
+ documentRequirementStatus: SmartSnippetsDocumentRequirementStatus;
79
93
  }
80
94
  export interface SmartSnippetsContentFieldsParams {
81
95
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coveo/platform-client",
3
- "version": "48.5.1",
3
+ "version": "49.1.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {