@coveo/platform-client 49.1.0 → 49.3.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.
Files changed (33) hide show
  1. package/dist/cjs/resources/MachineLearning/DocumentInterfaces.js +3 -0
  2. package/dist/cjs/resources/MachineLearning/DocumentInterfaces.js.map +1 -0
  3. package/dist/cjs/resources/MachineLearning/MachineLearning.js +3 -0
  4. package/dist/cjs/resources/MachineLearning/MachineLearning.js.map +1 -1
  5. package/dist/cjs/resources/MachineLearning/SemanticSearchConfiguration/SemanticSearchConfiguration.js +14 -0
  6. package/dist/cjs/resources/MachineLearning/SemanticSearchConfiguration/SemanticSearchConfiguration.js.map +1 -0
  7. package/dist/cjs/resources/MachineLearning/SemanticSearchConfiguration/SemanticSearchConfigurationInterfaces.js +3 -0
  8. package/dist/cjs/resources/MachineLearning/SemanticSearchConfiguration/SemanticSearchConfigurationInterfaces.js.map +1 -0
  9. package/dist/cjs/resources/MachineLearning/SemanticSearchConfiguration/index.js +6 -0
  10. package/dist/cjs/resources/MachineLearning/SemanticSearchConfiguration/index.js.map +1 -0
  11. package/dist/cjs/resources/MachineLearning/index.js +2 -0
  12. package/dist/cjs/resources/MachineLearning/index.js.map +1 -1
  13. package/dist/esm/resources/MachineLearning/DocumentInterfaces.js +2 -0
  14. package/dist/esm/resources/MachineLearning/DocumentInterfaces.js.map +1 -0
  15. package/dist/esm/resources/MachineLearning/MachineLearning.js +3 -0
  16. package/dist/esm/resources/MachineLearning/MachineLearning.js.map +1 -1
  17. package/dist/esm/resources/MachineLearning/SemanticSearchConfiguration/SemanticSearchConfiguration.js +10 -0
  18. package/dist/esm/resources/MachineLearning/SemanticSearchConfiguration/SemanticSearchConfiguration.js.map +1 -0
  19. package/dist/esm/resources/MachineLearning/SemanticSearchConfiguration/SemanticSearchConfigurationInterfaces.js +2 -0
  20. package/dist/esm/resources/MachineLearning/SemanticSearchConfiguration/SemanticSearchConfigurationInterfaces.js.map +1 -0
  21. package/dist/esm/resources/MachineLearning/SemanticSearchConfiguration/index.js +3 -0
  22. package/dist/esm/resources/MachineLearning/SemanticSearchConfiguration/index.js.map +1 -0
  23. package/dist/esm/resources/MachineLearning/index.js +2 -0
  24. package/dist/esm/resources/MachineLearning/index.js.map +1 -1
  25. package/dist/types/resources/MachineLearning/DocumentInterfaces.d.ts +1 -0
  26. package/dist/types/resources/MachineLearning/MachineLearning.d.ts +2 -0
  27. package/dist/types/resources/MachineLearning/SemanticSearchConfiguration/SemanticSearchConfiguration.d.ts +7 -0
  28. package/dist/types/resources/MachineLearning/SemanticSearchConfiguration/SemanticSearchConfigurationInterfaces.d.ts +50 -0
  29. package/dist/types/resources/MachineLearning/SemanticSearchConfiguration/index.d.ts +2 -0
  30. package/dist/types/resources/MachineLearning/SmartSnippetsConfiguration/SmartSnippetsConfigurationInterfaces.d.ts +2 -2
  31. package/dist/types/resources/MachineLearning/index.d.ts +2 -0
  32. package/dist/types/resources/Sources/SourcesInterfaces.d.ts +2 -1
  33. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=DocumentInterfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentInterfaces.js","sourceRoot":"","sources":["../../../../src/resources/MachineLearning/DocumentInterfaces.ts"],"names":[],"mappings":""}
@@ -11,6 +11,7 @@ const PQSConfiguration_js_1 = tslib_1.__importDefault(require("./PQSConfiguratio
11
11
  const UserActionHistoryConfiguration_js_1 = tslib_1.__importDefault(require("./UserActionHistoryConfiguration/UserActionHistoryConfiguration.js"));
12
12
  const IAPRConfiguration_js_1 = tslib_1.__importDefault(require("./IAPRConfiguration/IAPRConfiguration.js"));
13
13
  const ModelListing_js_1 = tslib_1.__importDefault(require("./ModelListing/ModelListing.js"));
14
+ const SemanticSearchConfiguration_js_1 = tslib_1.__importDefault(require("./SemanticSearchConfiguration/SemanticSearchConfiguration.js"));
14
15
  class MachineLearning extends Resource_js_1.default {
15
16
  api;
16
17
  serverlessApi;
@@ -23,6 +24,7 @@ class MachineLearning extends Resource_js_1.default {
23
24
  pqsConfig;
24
25
  iaprConfig;
25
26
  modelListing;
27
+ semanticSearchConfig;
26
28
  constructor(api, serverlessApi) {
27
29
  super(api, serverlessApi);
28
30
  this.api = api;
@@ -35,6 +37,7 @@ class MachineLearning extends Resource_js_1.default {
35
37
  this.iaprConfig = new IAPRConfiguration_js_1.default(api, serverlessApi);
36
38
  this.userActionHistoryConfig = new UserActionHistoryConfiguration_js_1.default(api, serverlessApi);
37
39
  this.modelListing = new ModelListing_js_1.default(api, serverlessApi);
40
+ this.semanticSearchConfig = new SemanticSearchConfiguration_js_1.default(api, serverlessApi);
38
41
  }
39
42
  register(registration) {
40
43
  return this.api.post(`${MachineLearning.baseUrl}/model`, registration);
@@ -1 +1 @@
1
- {"version":3,"file":"MachineLearning.js","sourceRoot":"","sources":["../../../../src/resources/MachineLearning/MachineLearning.ts"],"names":[],"mappings":";;;AAAA,0EAAmC;AACnC,yEAAsC;AACtC,sJAAmH;AACnH,yGAAsE;AACtE,uIAAoG;AAEpG,2EAAwC;AACxC,yGAAsE;AACtE,mJAAgH;AAChH,4GAAyE;AACzE,6FAA0D;AAE1D,MAAqB,eAAgB,SAAQ,qBAAQ;IAY3B;IAAoB;IAX1C,MAAM,CAAC,OAAO,GAAG,uBAAuB,oBAAG,CAAC,cAAc,kBAAkB,CAAC;IAE7E,MAAM,CAAS;IACf,SAAS,CAAmB;IAC5B,wBAAwB,CAAkC;IAC1D,mBAAmB,CAA6B;IAChD,uBAAuB,CAAiC;IACxD,SAAS,CAAmB;IAC5B,UAAU,CAAoB;IAC9B,YAAY,CAAe;IAE3B,YAAsB,GAAQ,EAAY,aAAkB;QACxD,KAAK,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QADR,QAAG,GAAH,GAAG,CAAK;QAAY,kBAAa,GAAb,aAAa,CAAK;QAGxD,IAAI,CAAC,M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Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const APICore_js_1 = tslib_1.__importDefault(require("../../../APICore.js"));
5
+ const Resource_js_1 = tslib_1.__importDefault(require("../../Resource.js"));
6
+ class SemanticSearchConfiguration extends Resource_js_1.default {
7
+ static baseUrl = `/rest/organizations/${APICore_js_1.default.orgPlaceholder}/machinelearning/configuration/ses`;
8
+ static previewUrl = `${SemanticSearchConfiguration.baseUrl}/preview`;
9
+ preview(params) {
10
+ return this.api.post(SemanticSearchConfiguration.previewUrl, params);
11
+ }
12
+ }
13
+ exports.default = SemanticSearchConfiguration;
14
+ //# sourceMappingURL=SemanticSearchConfiguration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SemanticSearchConfiguration.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/SemanticSearchConfiguration/SemanticSearchConfiguration.ts"],"names":[],"mappings":";;;AAAA,6EAAsC;AACtC,4EAAyC;AAMzC,MAAqB,2BAA4B,SAAQ,qBAAQ;IAC7D,MAAM,CAAC,OAAO,GAAG,uBAAuB,oBAAG,CAAC,cAAc,oCAAoC,CAAC;IAC/F,MAAM,CAAC,UAAU,GAAG,GAAG,2BAA2B,CAAC,OAAO,UAAU,CAAC;IAErE,OAAO,CAAC,MAAgD;QACpD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAqC,2BAA2B,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7G,CAAC;;AANL,8CAOC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SemanticSearchConfigurationInterfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SemanticSearchConfigurationInterfaces.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/SemanticSearchConfiguration/SemanticSearchConfigurationInterfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./SemanticSearchConfiguration.js"), exports);
5
+ tslib_1.__exportStar(require("./SemanticSearchConfigurationInterfaces.js"), exports);
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/SemanticSearchConfiguration/index.ts"],"names":[],"mappings":";;;AAAA,2EAAiD;AACjD,qFAA2D"}
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./MachineLearning.js"), exports);
5
5
  tslib_1.__exportStar(require("./MachineLearningInterfaces.js"), exports);
6
6
  tslib_1.__exportStar(require("./FilterConditions.js"), exports);
7
+ tslib_1.__exportStar(require("./DocumentInterfaces.js"), exports);
7
8
  tslib_1.__exportStar(require("./Models/index.js"), exports);
8
9
  tslib_1.__exportStar(require("./ModelInformation/index.js"), exports);
9
10
  tslib_1.__exportStar(require("./ModelListing/index.js"), exports);
@@ -11,6 +12,7 @@ tslib_1.__exportStar(require("./DNEConfiguration/index.js"), exports);
11
12
  tslib_1.__exportStar(require("./CaseClassificationConfiguration/index.js"), exports);
12
13
  tslib_1.__exportStar(require("./SmartSnippetsConfiguration/index.js"), exports);
13
14
  tslib_1.__exportStar(require("./PQSConfiguration/index.js"), exports);
15
+ tslib_1.__exportStar(require("./SemanticSearchConfiguration/index.js"), exports);
14
16
  tslib_1.__exportStar(require("./IAPRConfiguration/index.js"), exports);
15
17
  tslib_1.__exportStar(require("./UserActionHistoryConfiguration/index.js"), exports);
16
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/MachineLearning/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,yEAA+C;AAC/C,gEAAsC;AACtC,4DAAkC;AAClC,sEAA4C;AAC5C,kEAAwC;AACxC,sEAA4C;AAC5C,qFAA2D;AAC3D,gFAAsD;AACtD,sEAA4C;AAC5C,uEAA6C;AAC7C,oFAA0D"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/MachineLearning/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,yEAA+C;AAC/C,gEAAsC;AACtC,kEAAwC;AACxC,4DAAkC;AAClC,sEAA4C;AAC5C,kEAAwC;AACxC,sEAA4C;AAC5C,qFAA2D;AAC3D,gFAAsD;AACtD,sEAA4C;AAC5C,iFAAuD;AACvD,uEAA6C;AAC7C,oFAA0D"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DocumentInterfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentInterfaces.js","sourceRoot":"","sources":["../../../../src/resources/MachineLearning/DocumentInterfaces.ts"],"names":[],"mappings":""}
@@ -8,6 +8,7 @@ import PQSConfiguration from './PQSConfiguration/PQSConfiguration.js';
8
8
  import UserActionHistoryConfiguration from './UserActionHistoryConfiguration/UserActionHistoryConfiguration.js';
9
9
  import IAPRConfiguration from './IAPRConfiguration/IAPRConfiguration.js';
10
10
  import ModelListing from './ModelListing/ModelListing.js';
11
+ import SemanticSearchConfiguration from './SemanticSearchConfiguration/SemanticSearchConfiguration.js';
11
12
  export default class MachineLearning extends Resource {
12
13
  api;
13
14
  serverlessApi;
@@ -20,6 +21,7 @@ export default class MachineLearning extends Resource {
20
21
  pqsConfig;
21
22
  iaprConfig;
22
23
  modelListing;
24
+ semanticSearchConfig;
23
25
  constructor(api, serverlessApi) {
24
26
  super(api, serverlessApi);
25
27
  this.api = api;
@@ -32,6 +34,7 @@ export default class MachineLearning extends Resource {
32
34
  this.iaprConfig = new IAPRConfiguration(api, serverlessApi);
33
35
  this.userActionHistoryConfig = new UserActionHistoryConfiguration(api, serverlessApi);
34
36
  this.modelListing = new ModelListing(api, serverlessApi);
37
+ this.semanticSearchConfig = new SemanticSearchConfiguration(api, serverlessApi);
35
38
  }
36
39
  register(registration) {
37
40
  return this.api.post(`${MachineLearning.baseUrl}/model`, registration);
@@ -1 +1 @@
1
- {"version":3,"file":"MachineLearning.js","sourceRoot":"","sources":["../../../../src/resources/MachineLearning/MachineLearning.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,+BAA+B,MAAM,sEAAsE,CAAC;AACnH,OAAO,gBAAgB,MAAM,wCAAwC,CAAC;AACtE,OAAO,0BAA0B,MAAM,4DAA4D,CAAC;AAEpG,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,gBAAgB,MAAM,wCAAwC,CAAC;AACtE,OAAO,8BAA8B,MAAM,oEAAoE,CAAC;AAChH,OAAO,iBAAiB,MAAM,0CAA0C,CAAC;AACzE,OAAO,YAAY,MAAM,gCAAgC,CAAC;AAE1D,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,QAAQ;IAY3B;IAAoB;IAX1C,MAAM,CAAC,OAAO,GAAG,uBAAuB,GAAG,CAAC,cAAc,kBAAkB,CAAC;IAE7E,MAAM,CAAS;IACf,SAAS,CAAmB;IAC5B,wBAAwB,CAAkC;IAC1D,mBAAmB,CAA6B;IAChD,uBAAuB,CAAiC;IACxD,SAAS,CAAmB;IAC5B,UAAU,CAAoB;IAC9B,YAAY,CAAe;IAE3B,YAAsB,GAAQ,EAAY,aAAkB;QACxD,KAAK,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QADR,QAAG,GAAH,GAAG,CAAK;QAAY,kBAAa,GAAb,aAAa,CAAK;QAGxD,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC7C,IAAI,CAAC,SAAS,GAAG,IAAI,gBAAgB,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC1D,IAAI,CAAC,wBAAwB,GAAG,IAAI,+BAA+B,CAAC,GAAG,E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C;IAC3F,CAAC"}
@@ -0,0 +1,10 @@
1
+ import API from '../../../APICore.js';
2
+ import Resource from '../../Resource.js';
3
+ export default class SemanticSearchConfiguration extends Resource {
4
+ static baseUrl = `/rest/organizations/${API.orgPlaceholder}/machinelearning/configuration/ses`;
5
+ static previewUrl = `${SemanticSearchConfiguration.baseUrl}/preview`;
6
+ preview(params) {
7
+ return this.api.post(SemanticSearchConfiguration.previewUrl, params);
8
+ }
9
+ }
10
+ //# sourceMappingURL=SemanticSearchConfiguration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SemanticSearchConfiguration.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/SemanticSearchConfiguration/SemanticSearchConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AAMzC,MAAM,CAAC,OAAO,OAAO,2BAA4B,SAAQ,QAAQ;IAC7D,MAAM,CAAC,OAAO,GAAG,uBAAuB,GAAG,CAAC,cAAc,oCAAoC,CAAC;IAC/F,MAAM,CAAC,UAAU,GAAG,GAAG,2BAA2B,CAAC,OAAO,UAAU,CAAC;IAErE,OAAO,CAAC,MAAgD;QACpD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAqC,2BAA2B,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7G,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SemanticSearchConfigurationInterfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SemanticSearchConfigurationInterfaces.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/SemanticSearchConfiguration/SemanticSearchConfigurationInterfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from './SemanticSearchConfiguration.js';
2
+ export * from './SemanticSearchConfigurationInterfaces.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/SemanticSearchConfiguration/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,4CAA4C,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export * from './MachineLearning.js';
2
2
  export * from './MachineLearningInterfaces.js';
3
3
  export * from './FilterConditions.js';
4
+ export * from './DocumentInterfaces.js';
4
5
  export * from './Models/index.js';
5
6
  export * from './ModelInformation/index.js';
6
7
  export * from './ModelListing/index.js';
@@ -8,6 +9,7 @@ export * from './DNEConfiguration/index.js';
8
9
  export * from './CaseClassificationConfiguration/index.js';
9
10
  export * from './SmartSnippetsConfiguration/index.js';
10
11
  export * from './PQSConfiguration/index.js';
12
+ export * from './SemanticSearchConfiguration/index.js';
11
13
  export * from './IAPRConfiguration/index.js';
12
14
  export * from './UserActionHistoryConfiguration/index.js';
13
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/MachineLearning/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2CAA2C,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/MachineLearning/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wCAAwC,CAAC;AACvD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2CAA2C,CAAC"}
@@ -0,0 +1 @@
1
+ export type DocumentRequirementStatus = 'OK' | 'INSUFFICIENT_DOCUMENTS' | 'NB_OF_DOCUMENTS_OVER_LIMIT';
@@ -9,6 +9,7 @@ import PQSConfiguration from './PQSConfiguration/PQSConfiguration.js';
9
9
  import UserActionHistoryConfiguration from './UserActionHistoryConfiguration/UserActionHistoryConfiguration.js';
10
10
  import IAPRConfiguration from './IAPRConfiguration/IAPRConfiguration.js';
11
11
  import ModelListing from './ModelListing/ModelListing.js';
12
+ import SemanticSearchConfiguration from './SemanticSearchConfiguration/SemanticSearchConfiguration.js';
12
13
  export default class MachineLearning extends Resource {
13
14
  protected api: API;
14
15
  protected serverlessApi: API;
@@ -21,6 +22,7 @@ export default class MachineLearning extends Resource {
21
22
  pqsConfig: PQSConfiguration;
22
23
  iaprConfig: IAPRConfiguration;
23
24
  modelListing: ModelListing;
25
+ semanticSearchConfig: SemanticSearchConfiguration;
24
26
  constructor(api: API, serverlessApi: API);
25
27
  register(registration: RegistrationModel): Promise<MLModelCreated>;
26
28
  }
@@ -0,0 +1,7 @@
1
+ import Resource from '../../Resource.js';
2
+ import { SemanticSearchDocumentGroupPreview, SemanticSearchDocumentGroupPreviewParams } from './SemanticSearchConfigurationInterfaces.js';
3
+ export default class SemanticSearchConfiguration extends Resource {
4
+ static baseUrl: string;
5
+ static previewUrl: string;
6
+ preview(params: SemanticSearchDocumentGroupPreviewParams): Promise<SemanticSearchDocumentGroupPreview>;
7
+ }
@@ -0,0 +1,50 @@
1
+ import { DocumentRequirementStatus } from '../DocumentInterfaces.js';
2
+ import { FilterConditions } from '../FilterConditions.js';
3
+ export interface SemanticSearchDocumentGroupPreviewParams {
4
+ /**
5
+ * The names of the sources containing the items that the model should use to extract chunks.
6
+ */
7
+ sources?: string[];
8
+ /**
9
+ * The custom filter conditions to target specific documents.
10
+ */
11
+ filterConditions?: FilterConditions[];
12
+ /**
13
+ * The query that determines the documents to extract. Cannot be used with other document extraction parameters, e.g. sources, filter conditions, etc.
14
+ *
15
+ * @Example @source==("My source") AND @permanentid AND @language="English";
16
+ */
17
+ advancedQuery?: string;
18
+ }
19
+ export interface SemanticSearchDocumentGroupPreview {
20
+ /**
21
+ * The query that was used to fetch document information.
22
+ *
23
+ * @Example @source==("Salesforce Notifier")
24
+ */
25
+ query: string;
26
+ /**
27
+ * The total number of documents in the selected sources.
28
+ */
29
+ numberOfDocumentsInSources: number;
30
+ /**
31
+ * The number of documents that are candidates for learning.
32
+ */
33
+ numberOfValidDocuments: number;
34
+ /**
35
+ * The number of documents in the selected sources that match the conditions.
36
+ */
37
+ numberOfDocumentsInSourcesMatchingFilters: number;
38
+ /**
39
+ * The number of documents in the selected sources that match the conditions and have a `permanentid`.
40
+ */
41
+ numberOfDocumentsInSourcesMatchingFiltersWithPermanentId: number;
42
+ /**
43
+ * The maximum number of documents allowed to learn from.
44
+ */
45
+ documentLimit: number;
46
+ /**
47
+ * Status for the number of required documents to build the model.
48
+ */
49
+ documentRequirementStatus: DocumentRequirementStatus;
50
+ }
@@ -0,0 +1,2 @@
1
+ export * from './SemanticSearchConfiguration.js';
2
+ export * from './SemanticSearchConfigurationInterfaces.js';
@@ -1,3 +1,4 @@
1
+ import { DocumentRequirementStatus } from '../DocumentInterfaces.js';
1
2
  import { FilterConditions } from '../FilterConditions.js';
2
3
  export interface DocumentType {
3
4
  /**
@@ -36,7 +37,6 @@ export interface SmartSnippetsConfigurationModel {
36
37
  */
37
38
  documentTypes?: DocumentType[];
38
39
  }
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.
@@ -89,7 +89,7 @@ export interface SmartSnippetsDocumentGroupPreview {
89
89
  /**
90
90
  * Status for the number of required documents to build the model.
91
91
  */
92
- documentRequirementStatus: SmartSnippetsDocumentRequirementStatus;
92
+ documentRequirementStatus: DocumentRequirementStatus;
93
93
  }
94
94
  export interface SmartSnippetsContentFieldsParams {
95
95
  /**
@@ -1,6 +1,7 @@
1
1
  export * from './MachineLearning.js';
2
2
  export * from './MachineLearningInterfaces.js';
3
3
  export * from './FilterConditions.js';
4
+ export * from './DocumentInterfaces.js';
4
5
  export * from './Models/index.js';
5
6
  export * from './ModelInformation/index.js';
6
7
  export * from './ModelListing/index.js';
@@ -8,5 +9,6 @@ export * from './DNEConfiguration/index.js';
8
9
  export * from './CaseClassificationConfiguration/index.js';
9
10
  export * from './SmartSnippetsConfiguration/index.js';
10
11
  export * from './PQSConfiguration/index.js';
12
+ export * from './SemanticSearchConfiguration/index.js';
11
13
  export * from './IAPRConfiguration/index.js';
12
14
  export * from './UserActionHistoryConfiguration/index.js';
@@ -1,8 +1,8 @@
1
1
  import { GranularResource, Paginated } from '../BaseInterfaces.js';
2
2
  import { FilterHostType, FilterLastOperationResultType, FilterLastOperationType, FilterStatusType, SortingOrder, SortingType, SourceOperationalStatus, SourceSecurityOption, SourceType, SourceVisibility } from '../Enums.js';
3
3
  import { SecurityProvider, SecurityProviderModel } from '../SecurityCache/SecurityCacheInterfaces.js';
4
- import * as SourcesSubInterface from './SourcesSubInterfaces/index.js';
5
4
  import { MappingModel } from './SourcesMappings/index.js';
5
+ import * as SourcesSubInterface from './SourcesSubInterfaces/index.js';
6
6
  export * from './SourcesSubInterfaces/index.js';
7
7
  interface ListParams extends Paginated {
8
8
  filter?: string;
@@ -18,6 +18,7 @@ export interface ListSourcesParams extends ListParams {
18
18
  filterLastOperationResultType?: FilterLastOperationResultType;
19
19
  filterLastOperationType?: FilterLastOperationType;
20
20
  filterStatusType?: FilterStatusType;
21
+ stringFilterType?: 'WILDCARD' | 'EXACTMATCH';
21
22
  }
22
23
  export interface ExtendedConfig {
23
24
  addressPatterns?: SourcesSubInterface.AddressPattern[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coveo/platform-client",
3
- "version": "49.1.0",
3
+ "version": "49.3.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {