@coveo/platform-client 44.1.0 → 44.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 (31) hide show
  1. package/dist/cjs/Entry.js +3 -1
  2. package/dist/cjs/Entry.js.map +1 -1
  3. package/dist/cjs/resources/MachineLearning/IAPRConfiguration/IAPRConfiguration.js +15 -0
  4. package/dist/cjs/resources/MachineLearning/IAPRConfiguration/IAPRConfiguration.js.map +1 -0
  5. package/dist/cjs/resources/MachineLearning/IAPRConfiguration/IAPRConfigurationInterfaces.js +3 -0
  6. package/dist/cjs/resources/MachineLearning/IAPRConfiguration/IAPRConfigurationInterfaces.js.map +1 -0
  7. package/dist/cjs/resources/MachineLearning/IAPRConfiguration/index.js +19 -0
  8. package/dist/cjs/resources/MachineLearning/IAPRConfiguration/index.js.map +1 -0
  9. package/dist/cjs/resources/MachineLearning/MachineLearning.js +3 -0
  10. package/dist/cjs/resources/MachineLearning/MachineLearning.js.map +1 -1
  11. package/dist/cjs/resources/MachineLearning/index.js +1 -0
  12. package/dist/cjs/resources/MachineLearning/index.js.map +1 -1
  13. package/dist/esm/Entry.js +1 -0
  14. package/dist/esm/Entry.js.map +1 -1
  15. package/dist/esm/resources/MachineLearning/IAPRConfiguration/IAPRConfiguration.js +10 -0
  16. package/dist/esm/resources/MachineLearning/IAPRConfiguration/IAPRConfiguration.js.map +1 -0
  17. package/dist/esm/resources/MachineLearning/IAPRConfiguration/IAPRConfigurationInterfaces.js +2 -0
  18. package/dist/esm/resources/MachineLearning/IAPRConfiguration/IAPRConfigurationInterfaces.js.map +1 -0
  19. package/dist/esm/resources/MachineLearning/IAPRConfiguration/index.js +3 -0
  20. package/dist/esm/resources/MachineLearning/IAPRConfiguration/index.js.map +1 -0
  21. package/dist/esm/resources/MachineLearning/MachineLearning.js +3 -0
  22. package/dist/esm/resources/MachineLearning/MachineLearning.js.map +1 -1
  23. package/dist/esm/resources/MachineLearning/index.js +1 -0
  24. package/dist/esm/resources/MachineLearning/index.js.map +1 -1
  25. package/dist/types/Entry.d.ts +1 -0
  26. package/dist/types/resources/MachineLearning/IAPRConfiguration/IAPRConfiguration.d.ts +6 -0
  27. package/dist/types/resources/MachineLearning/IAPRConfiguration/IAPRConfigurationInterfaces.d.ts +11 -0
  28. package/dist/types/resources/MachineLearning/IAPRConfiguration/index.d.ts +2 -0
  29. package/dist/types/resources/MachineLearning/MachineLearning.d.ts +2 -0
  30. package/dist/types/resources/MachineLearning/index.d.ts +1 -0
  31. package/package.json +12 -12
package/dist/cjs/Entry.js CHANGED
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.API = void 0;
20
+ exports.getEndpoint = exports.API = void 0;
21
21
  const PlatformClient_js_1 = __importDefault(require("./PlatformClient.js"));
22
22
  __exportStar(require("./PlatformClient.js"), exports);
23
23
  __exportStar(require("./ConfigurationInterfaces.js"), exports);
@@ -27,5 +27,7 @@ __exportStar(require("./utils/index.js"), exports);
27
27
  __exportStar(require("./Endpoints.js"), exports);
28
28
  var APICore_js_1 = require("./APICore.js");
29
29
  Object.defineProperty(exports, "API", { enumerable: true, get: function () { return __importDefault(APICore_js_1).default; } });
30
+ var Endpoints_js_1 = require("./Endpoints.js");
31
+ Object.defineProperty(exports, "getEndpoint", { enumerable: true, get: function () { return __importDefault(Endpoints_js_1).default; } });
30
32
  exports.default = PlatformClient_js_1.default;
31
33
  //# sourceMappingURL=Entry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Entry.js","sourceRoot":"","sources":["../../src/Entry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,4EAAiD;AAEjD,sDAAoC;AACpC,+DAA6C;AAC7C,sDAAoC;AACpC,uDAAqC;AACrC,mDAAiC;AACjC,iDAA+B;AAE/B,2CAA4C;AAApC,kHAAA,OAAO,OAAO;AACtB,kBAAe,2BAAc,CAAC"}
1
+ {"version":3,"file":"Entry.js","sourceRoot":"","sources":["../../src/Entry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,4EAAiD;AAEjD,sDAAoC;AACpC,+DAA6C;AAC7C,sDAAoC;AACpC,uDAAqC;AACrC,mDAAiC;AACjC,iDAA+B;AAE/B,2CAA4C;AAApC,kHAAA,OAAO,OAAO;AACtB,+CAAsD;AAA9C,4HAAA,OAAO,OAAe;AAC9B,kBAAe,2BAAc,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const APICore_js_1 = __importDefault(require("../../../APICore.js"));
7
+ const Resource_js_1 = __importDefault(require("../../Resource.js"));
8
+ class IAPRConfiguration extends Resource_js_1.default {
9
+ static baseUrl = `/rest/organizations/${APICore_js_1.default.orgPlaceholder}/machinelearning/configuration/iapr`;
10
+ create(model) {
11
+ return this.api.post(`${IAPRConfiguration.baseUrl}/model`, model);
12
+ }
13
+ }
14
+ exports.default = IAPRConfiguration;
15
+ //# sourceMappingURL=IAPRConfiguration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAPRConfiguration.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/IAPRConfiguration/IAPRConfiguration.ts"],"names":[],"mappings":";;;;;AAAA,qEAAsC;AACtC,oEAAyC;AAGzC,MAAqB,iBAAkB,SAAQ,qBAAQ;IACnD,MAAM,CAAC,OAAO,GAAG,uBAAuB,oBAAG,CAAC,cAAc,qCAAqC,CAAC;IAEhG,MAAM,CAAC,KAA6B;QAChC,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAyB,GAAG,iBAAiB,CAAC,OAAO,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC9F,CAAC;;kBALgB,iBAAiB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAPRConfigurationInterfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAPRConfigurationInterfaces.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/IAPRConfiguration/IAPRConfigurationInterfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./IAPRConfiguration.js"), exports);
18
+ __exportStar(require("./IAPRConfigurationInterfaces.js"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/IAPRConfiguration/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,mEAAiD"}
@@ -11,6 +11,7 @@ const SmartSnippetsConfiguration_js_1 = __importDefault(require("./SmartSnippets
11
11
  const Models_js_1 = __importDefault(require("./Models/Models.js"));
12
12
  const PQSConfiguration_js_1 = __importDefault(require("./PQSConfiguration/PQSConfiguration.js"));
13
13
  const UserActionHistoryConfiguration_js_1 = __importDefault(require("./UserActionHistoryConfiguration/UserActionHistoryConfiguration.js"));
14
+ const IAPRConfiguration_js_1 = __importDefault(require("./IAPRConfiguration/IAPRConfiguration.js"));
14
15
  class MachineLearning extends Resource_js_1.default {
15
16
  api;
16
17
  serverlessApi;
@@ -21,6 +22,7 @@ class MachineLearning extends Resource_js_1.default {
21
22
  smartSnippetsConfig;
22
23
  userActionHistoryConfig;
23
24
  pqsConfig;
25
+ iaprConfig;
24
26
  constructor(api, serverlessApi) {
25
27
  super(api, serverlessApi);
26
28
  this.api = api;
@@ -30,6 +32,7 @@ class MachineLearning extends Resource_js_1.default {
30
32
  this.caseClassificationConfig = new CaseClassificationConfiguration_js_1.default(api, serverlessApi);
31
33
  this.smartSnippetsConfig = new SmartSnippetsConfiguration_js_1.default(api, serverlessApi);
32
34
  this.pqsConfig = new PQSConfiguration_js_1.default(api, serverlessApi);
35
+ this.iaprConfig = new IAPRConfiguration_js_1.default(api, serverlessApi);
33
36
  this.userActionHistoryConfig = new UserActionHistoryConfiguration_js_1.default(api, serverlessApi);
34
37
  }
35
38
  register(registration) {
@@ -1 +1 @@
1
- {"version":3,"file":"MachineLearning.js","sourceRoot":"","sources":["../../../../src/resources/MachineLearning/MachineLearning.ts"],"names":[],"mappings":";;;;;AAAA,kEAAmC;AACnC,iEAAsC;AACtC,8IAAmH;AACnH,iGAAsE;AACtE,+HAAoG;AAEpG,mEAAwC;AACxC,iGAAsE;AACtE,2IAAgH;AAEhH,MAAqB,eAAgB,SAAQ,qBAAQ;IAU3B;IAAoB;IAT1C,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;IAE5B,YAAsB,GAAQ,EAAY,aAAkB;QACxD,KAAK,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QADR,QAAG,GAAH,GAAG,CAAK;QAAY,k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AAK,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QADR,QAAG,GAAH,GAAG,CAAK;QAAY,kBAAa,GAAb,aAAa,CAAK;QAGxD,IAAI,CAAC,MAAM,GAAG,IAAI,mBAAM,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC7C,IAAI,CAAC,SAAS,GAAG,IAAI,6BAAgB,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC1D,IAAI,CAAC,wBAAwB,GAAG,IAAI,4CAA+B,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QACxF,IAAI,CAAC,mBAAmB,GAAG,IAAI,uCAA0B,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC9E,IAAI,CAAC,SAAS,GAAG,IAAI,6BAAgB,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC1D,IAAI,CAAC,UAAU,GAAG,IAAI,8BAAiB,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC5D,IAAI,CAAC,uBAAuB,GAAG,IAAI,2CAA8B,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;IAC1F,CAAC;IAED,QAAQ,CAAC,YAA+B;QACpC,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAiB,GAAG,eAAe,CAAC,OAAO,QAAQ,EAAE,YAAY,CAAC,CAAC;IAC3F,CAAC;;kBAzBgB,eAAe"}
@@ -23,5 +23,6 @@ __exportStar(require("./DNEConfiguration/index.js"), exports);
23
23
  __exportStar(require("./CaseClassificationConfiguration/index.js"), exports);
24
24
  __exportStar(require("./SmartSnippetsConfiguration/index.js"), exports);
25
25
  __exportStar(require("./PQSConfiguration/index.js"), exports);
26
+ __exportStar(require("./IAPRConfiguration/index.js"), exports);
26
27
  __exportStar(require("./UserActionHistoryConfiguration/index.js"), exports);
27
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/MachineLearning/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,iEAA+C;AAC/C,wDAAsC;AACtC,oDAAkC;AAClC,8DAA4C;AAC5C,8DAA4C;AAC5C,6EAA2D;AAC3D,wEAAsD;AACtD,8DAA4C;AAC5C,4EAA0D"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/MachineLearning/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,iEAA+C;AAC/C,wDAAsC;AACtC,oDAAkC;AAClC,8DAA4C;AAC5C,8DAA4C;AAC5C,6EAA2D;AAC3D,wEAAsD;AACtD,8DAA4C;AAC5C,+DAA6C;AAC7C,4EAA0D"}
package/dist/esm/Entry.js CHANGED
@@ -6,5 +6,6 @@ export * from './resources/index.js';
6
6
  export * from './utils/index.js';
7
7
  export * from './Endpoints.js';
8
8
  export { default as API } from './APICore.js';
9
+ export { default as getEndpoint } from './Endpoints.js';
9
10
  export default PlatformClient;
10
11
  //# sourceMappingURL=Entry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Entry.js","sourceRoot":"","sources":["../../src/Entry.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,qBAAqB,CAAC;AAEjD,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAE/B,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,cAAc,CAAC;AAC5C,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"Entry.js","sourceRoot":"","sources":["../../src/Entry.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,qBAAqB,CAAC;AAEjD,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAE/B,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,gBAAgB,CAAC;AACtD,eAAe,cAAc,CAAC"}
@@ -0,0 +1,10 @@
1
+ import API from '../../../APICore.js';
2
+ import Resource from '../../Resource.js';
3
+ class IAPRConfiguration extends Resource {
4
+ static baseUrl = `/rest/organizations/${API.orgPlaceholder}/machinelearning/configuration/iapr`;
5
+ create(model) {
6
+ return this.api.post(`${IAPRConfiguration.baseUrl}/model`, model);
7
+ }
8
+ }
9
+ export default IAPRConfiguration;
10
+ //# sourceMappingURL=IAPRConfiguration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAPRConfiguration.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/IAPRConfiguration/IAPRConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AAGzC,MAAqB,iBAAkB,SAAQ,QAAQ;IACnD,MAAM,CAAC,OAAO,GAAG,uBAAuB,GAAG,CAAC,cAAc,qCAAqC,CAAC;IAEhG,MAAM,CAAC,KAA6B;QAChC,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAyB,GAAG,iBAAiB,CAAC,OAAO,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC9F,CAAC;;eALgB,iBAAiB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IAPRConfigurationInterfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAPRConfigurationInterfaces.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/IAPRConfiguration/IAPRConfigurationInterfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from './IAPRConfiguration.js';
2
+ export * from './IAPRConfigurationInterfaces.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/IAPRConfiguration/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC"}
@@ -6,6 +6,7 @@ import SmartSnippetsConfiguration from './SmartSnippetsConfiguration/SmartSnippe
6
6
  import Models from './Models/Models.js';
7
7
  import PQSConfiguration from './PQSConfiguration/PQSConfiguration.js';
8
8
  import UserActionHistoryConfiguration from './UserActionHistoryConfiguration/UserActionHistoryConfiguration.js';
9
+ import IAPRConfiguration from './IAPRConfiguration/IAPRConfiguration.js';
9
10
  class MachineLearning extends Resource {
10
11
  api;
11
12
  serverlessApi;
@@ -16,6 +17,7 @@ class MachineLearning extends Resource {
16
17
  smartSnippetsConfig;
17
18
  userActionHistoryConfig;
18
19
  pqsConfig;
20
+ iaprConfig;
19
21
  constructor(api, serverlessApi) {
20
22
  super(api, serverlessApi);
21
23
  this.api = api;
@@ -25,6 +27,7 @@ class MachineLearning extends Resource {
25
27
  this.caseClassificationConfig = new CaseClassificationConfiguration(api, serverlessApi);
26
28
  this.smartSnippetsConfig = new SmartSnippetsConfiguration(api, serverlessApi);
27
29
  this.pqsConfig = new PQSConfiguration(api, serverlessApi);
30
+ this.iaprConfig = new IAPRConfiguration(api, serverlessApi);
28
31
  this.userActionHistoryConfig = new UserActionHistoryConfiguration(api, serverlessApi);
29
32
  }
30
33
  register(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,C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,IAAI,CAAC,UAAU,GAAG,IAAI,iBAAiB,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC5D,IAAI,CAAC,uBAAuB,GAAG,IAAI,8BAA8B,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;IAC1F,CAAC;IAED,QAAQ,CAAC,YAA+B;QACpC,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAiB,GAAG,eAAe,CAAC,OAAO,QAAQ,EAAE,YAAY,CAAC,CAAC;IAC3F,CAAC;;eAzBgB,eAAe"}
@@ -7,5 +7,6 @@ export * from './DNEConfiguration/index.js';
7
7
  export * from './CaseClassificationConfiguration/index.js';
8
8
  export * from './SmartSnippetsConfiguration/index.js';
9
9
  export * from './PQSConfiguration/index.js';
10
+ export * from './IAPRConfiguration/index.js';
10
11
  export * from './UserActionHistoryConfiguration/index.js';
11
12
  //# 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,6BAA6B,CAAC;AAC5C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,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,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2CAA2C,CAAC"}
@@ -6,4 +6,5 @@ export * from './resources/index.js';
6
6
  export * from './utils/index.js';
7
7
  export * from './Endpoints.js';
8
8
  export { default as API } from './APICore.js';
9
+ export { default as getEndpoint } from './Endpoints.js';
9
10
  export default PlatformClient;
@@ -0,0 +1,6 @@
1
+ import Resource from '../../Resource.js';
2
+ import { IAPRConfigurationModel } from './IAPRConfigurationInterfaces.js';
3
+ export default class IAPRConfiguration extends Resource {
4
+ static baseUrl: string;
5
+ create(model: IAPRConfigurationModel): Promise<IAPRConfigurationModel>;
6
+ }
@@ -0,0 +1,11 @@
1
+ export interface IAPRConfigurationModel {
2
+ /**
3
+ * The unique identifier of the catalog to be used by the model to infer
4
+ * personalized suggestions based on product vectors.
5
+ */
6
+ catalogId: string;
7
+ /**
8
+ * The model display name in the Coveo Administration console.
9
+ */
10
+ modelDisplayName: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ export * from './IAPRConfiguration.js';
2
+ export * from './IAPRConfigurationInterfaces.js';
@@ -7,6 +7,7 @@ import { MLModelCreated, RegistrationModel } from './MachineLearningInterfaces.j
7
7
  import Models from './Models/Models.js';
8
8
  import PQSConfiguration from './PQSConfiguration/PQSConfiguration.js';
9
9
  import UserActionHistoryConfiguration from './UserActionHistoryConfiguration/UserActionHistoryConfiguration.js';
10
+ import IAPRConfiguration from './IAPRConfiguration/IAPRConfiguration.js';
10
11
  export default class MachineLearning extends Resource {
11
12
  protected api: API;
12
13
  protected serverlessApi: API;
@@ -17,6 +18,7 @@ export default class MachineLearning extends Resource {
17
18
  smartSnippetsConfig: SmartSnippetsConfiguration;
18
19
  userActionHistoryConfig: UserActionHistoryConfiguration;
19
20
  pqsConfig: PQSConfiguration;
21
+ iaprConfig: IAPRConfiguration;
20
22
  constructor(api: API, serverlessApi: API);
21
23
  register(registration: RegistrationModel): Promise<MLModelCreated>;
22
24
  }
@@ -7,4 +7,5 @@ export * from './DNEConfiguration/index.js';
7
7
  export * from './CaseClassificationConfiguration/index.js';
8
8
  export * from './SmartSnippetsConfiguration/index.js';
9
9
  export * from './PQSConfiguration/index.js';
10
+ export * from './IAPRConfiguration/index.js';
10
11
  export * from './UserActionHistoryConfiguration/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coveo/platform-client",
3
- "version": "44.1.0",
3
+ "version": "44.3.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -32,14 +32,14 @@
32
32
  "prepare": "husky install"
33
33
  },
34
34
  "devDependencies": {
35
- "@commitlint/cli": "17.5.0",
36
- "@commitlint/config-conventional": "17.4.4",
37
- "@types/jest": "29.5.0",
38
- "@typescript-eslint/eslint-plugin": "5.56.0",
39
- "@typescript-eslint/parser": "5.56.0",
35
+ "@commitlint/cli": "17.6.1",
36
+ "@commitlint/config-conventional": "17.6.1",
37
+ "@types/jest": "29.5.1",
38
+ "@typescript-eslint/eslint-plugin": "5.59.1",
39
+ "@typescript-eslint/parser": "5.59.1",
40
40
  "abortcontroller-polyfill": "1.7.5",
41
41
  "cz-conventional-changelog": "3.3.0",
42
- "eslint": "8.36.0",
42
+ "eslint": "8.39.0",
43
43
  "eslint-config-prettier": "8.8.0",
44
44
  "eslint-config-typescript": "3.0.0",
45
45
  "eslint-plugin-jest": "27.2.1",
@@ -48,13 +48,13 @@
48
48
  "jest": "29.5.0",
49
49
  "jest-fetch-mock": "3.0.3",
50
50
  "jest-runner-eslint": "2.0.0",
51
- "lint-staged": "13.2.0",
52
- "prettier": "2.8.7",
53
- "semantic-release": "21.0.1",
54
- "ts-jest": "29.0.5",
51
+ "lint-staged": "13.2.2",
52
+ "prettier": "2.8.8",
53
+ "semantic-release": "21.0.2",
54
+ "ts-jest": "29.1.0",
55
55
  "tsjs": "4.2.1",
56
56
  "tslib": "2.5.0",
57
- "typescript": "5.0.2"
57
+ "typescript": "5.0.4"
58
58
  },
59
59
  "prettier": "tsjs/prettier-config",
60
60
  "lint-staged": {