@coveo/platform-client 54.7.0 → 54.7.2

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.
@@ -75,7 +75,7 @@ class Project extends Resource_js_1.default {
75
75
  *
76
76
  * @param {ProjectResourceType} resourceType
77
77
  * @param {string[]} resourceIds
78
- * @returns {Promise<ListAssociatedProjectsModel>} List of project IDs associated to the provided resource IDs.
78
+ * @returns {Promise<ListAssociatedProjectsModel[]>} List of project IDs associated to the provided resource IDs.
79
79
  */
80
80
  listAssociatedProjects(resourceType, resourceIds) {
81
81
  return this.api.post(this.buildPath(`${Project.baseUrl}/resources/ids`, { resourceType }), resourceIds);
@@ -72,7 +72,7 @@ export default class Project extends Resource {
72
72
  *
73
73
  * @param {ProjectResourceType} resourceType
74
74
  * @param {string[]} resourceIds
75
- * @returns {Promise<ListAssociatedProjectsModel>} List of project IDs associated to the provided resource IDs.
75
+ * @returns {Promise<ListAssociatedProjectsModel[]>} List of project IDs associated to the provided resource IDs.
76
76
  */
77
77
  listAssociatedProjects(resourceType, resourceIds) {
78
78
  return this.api.post(this.buildPath(`${Project.baseUrl}/resources/ids`, { resourceType }), resourceIds);
@@ -118,7 +118,29 @@ export interface CaseClassificationDocumentGroupPreview {
118
118
  */
119
119
  numberOfValidDocuments: number;
120
120
  }
121
- export interface CaseClassificationContentFieldsParams {
121
+ export interface CaseClassificationContentFieldsAdvancedMode {
122
+ /**
123
+ * The query to use when building the model.
124
+ */
125
+ advancedQuery: string;
126
+ /**
127
+ * The case creation date range for the cases the model will use.
128
+ */
129
+ caseExtractionPeriod?: never;
130
+ /**
131
+ * An array of filtering conditions.
132
+ */
133
+ caseFilterConditions?: never;
134
+ /**
135
+ * The field value to use as language.
136
+ */
137
+ languageField?: never;
138
+ /**
139
+ * The names of the sources that contain the cases that the model will use.
140
+ */
141
+ sources?: never;
142
+ }
143
+ export interface CaseClassificationContentFieldsStandardMode {
122
144
  /**
123
145
  * The case creation date range for the cases the model will use.
124
146
  */
@@ -135,7 +157,12 @@ export interface CaseClassificationContentFieldsParams {
135
157
  * The names of the sources that contain the cases that the model will use.
136
158
  */
137
159
  sources: string[];
160
+ /**
161
+ * The query to use when building the model.
162
+ */
163
+ advancedQuery?: never;
138
164
  }
165
+ export type CaseClassificationContentFieldsParams = CaseClassificationContentFieldsStandardMode | CaseClassificationContentFieldsAdvancedMode;
139
166
  export interface CaseClassificationContentField {
140
167
  name: string;
141
168
  }
@@ -60,7 +60,7 @@ export default class Project extends Resource {
60
60
  *
61
61
  * @param {ProjectResourceType} resourceType
62
62
  * @param {string[]} resourceIds
63
- * @returns {Promise<ListAssociatedProjectsModel>} List of project IDs associated to the provided resource IDs.
63
+ * @returns {Promise<ListAssociatedProjectsModel[]>} List of project IDs associated to the provided resource IDs.
64
64
  */
65
- listAssociatedProjects(resourceType: ProjectResourceType, resourceIds: string[]): Promise<ListAssociatedProjectsModel>;
65
+ listAssociatedProjects(resourceType: ProjectResourceType, resourceIds: string[]): Promise<ListAssociatedProjectsModel[]>;
66
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coveo/platform-client",
3
- "version": "54.7.0",
3
+ "version": "54.7.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {