@coveo/platform-client 42.7.0 → 43.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.
- package/dist/cjs/resources/MachineLearning/MachineLearning.js +0 -3
- package/dist/cjs/resources/MachineLearning/MachineLearning.js.map +1 -1
- package/dist/cjs/resources/MachineLearning/index.js +0 -1
- package/dist/cjs/resources/MachineLearning/index.js.map +1 -1
- package/dist/esm/resources/MachineLearning/MachineLearning.js +0 -3
- package/dist/esm/resources/MachineLearning/MachineLearning.js.map +1 -1
- package/dist/esm/resources/MachineLearning/index.js +0 -1
- package/dist/esm/resources/MachineLearning/index.js.map +1 -1
- package/dist/types/resources/MachineLearning/MachineLearning.d.ts +0 -2
- package/dist/types/resources/MachineLearning/index.d.ts +0 -1
- package/package.json +2 -2
- package/dist/cjs/resources/MachineLearning/ModelConfiguration/ModelConfiguration.js +0 -18
- package/dist/cjs/resources/MachineLearning/ModelConfiguration/ModelConfiguration.js.map +0 -1
- package/dist/cjs/resources/MachineLearning/ModelConfiguration/ModelConfigurationInterfaces.js +0 -3
- package/dist/cjs/resources/MachineLearning/ModelConfiguration/ModelConfigurationInterfaces.js.map +0 -1
- package/dist/cjs/resources/MachineLearning/ModelConfiguration/index.js +0 -19
- package/dist/cjs/resources/MachineLearning/ModelConfiguration/index.js.map +0 -1
- package/dist/esm/resources/MachineLearning/ModelConfiguration/ModelConfiguration.js +0 -13
- package/dist/esm/resources/MachineLearning/ModelConfiguration/ModelConfiguration.js.map +0 -1
- package/dist/esm/resources/MachineLearning/ModelConfiguration/ModelConfigurationInterfaces.js +0 -2
- package/dist/esm/resources/MachineLearning/ModelConfiguration/ModelConfigurationInterfaces.js.map +0 -1
- package/dist/esm/resources/MachineLearning/ModelConfiguration/index.js +0 -3
- package/dist/esm/resources/MachineLearning/ModelConfiguration/index.js.map +0 -1
- package/dist/types/resources/MachineLearning/ModelConfiguration/ModelConfiguration.d.ts +0 -7
- package/dist/types/resources/MachineLearning/ModelConfiguration/ModelConfigurationInterfaces.d.ts +0 -10
- package/dist/types/resources/MachineLearning/ModelConfiguration/index.d.ts +0 -2
|
@@ -8,7 +8,6 @@ const Resource_js_1 = __importDefault(require("../Resource.js"));
|
|
|
8
8
|
const CaseClassificationConfiguration_js_1 = __importDefault(require("./CaseClassificationConfiguration/CaseClassificationConfiguration.js"));
|
|
9
9
|
const DNEConfiguration_js_1 = __importDefault(require("./DNEConfiguration/DNEConfiguration.js"));
|
|
10
10
|
const SmartSnippetsConfiguration_js_1 = __importDefault(require("./SmartSnippetsConfiguration/SmartSnippetsConfiguration.js"));
|
|
11
|
-
const ModelConfiguration_js_1 = __importDefault(require("./ModelConfiguration/ModelConfiguration.js"));
|
|
12
11
|
const ModelInformation_js_1 = __importDefault(require("./ModelInformation/ModelInformation.js"));
|
|
13
12
|
const Models_js_1 = __importDefault(require("./Models/Models.js"));
|
|
14
13
|
const PQSConfiguration_js_1 = __importDefault(require("./PQSConfiguration/PQSConfiguration.js"));
|
|
@@ -19,7 +18,6 @@ class MachineLearning extends Resource_js_1.default {
|
|
|
19
18
|
static baseUrl = `/rest/organizations/${APICore_js_1.default.orgPlaceholder}/machinelearning`;
|
|
20
19
|
models;
|
|
21
20
|
modelInfo;
|
|
22
|
-
modelConfig;
|
|
23
21
|
dneConfig;
|
|
24
22
|
caseClassificationConfig;
|
|
25
23
|
smartSnippetsConfig;
|
|
@@ -31,7 +29,6 @@ class MachineLearning extends Resource_js_1.default {
|
|
|
31
29
|
this.serverlessApi = serverlessApi;
|
|
32
30
|
this.models = new Models_js_1.default(api, serverlessApi);
|
|
33
31
|
this.modelInfo = new ModelInformation_js_1.default(api, serverlessApi);
|
|
34
|
-
this.modelConfig = new ModelConfiguration_js_1.default(api, serverlessApi);
|
|
35
32
|
this.dneConfig = new DNEConfiguration_js_1.default(api, serverlessApi);
|
|
36
33
|
this.caseClassificationConfig = new CaseClassificationConfiguration_js_1.default(api, serverlessApi);
|
|
37
34
|
this.smartSnippetsConfig = new SmartSnippetsConfiguration_js_1.default(api, serverlessApi);
|
|
@@ -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,
|
|
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,iGAAsE;AACtE,mEAAwC;AACxC,iGAAsE;AACtE,2IAAgH;AAEhH,MAAqB,eAAgB,SAAQ,qBAAQ;IAW3B;IAAoB;IAV1C,MAAM,CAAC,OAAO,GAAG,uBAAuB,oBAAG,CAAC,cAAc,kBAAkB,CAAC;IAE7E,MAAM,CAAS;IACf,SAAS,CAAmB;IAC5B,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,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,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,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"}
|
|
@@ -19,7 +19,6 @@ __exportStar(require("./MachineLearningInterfaces.js"), exports);
|
|
|
19
19
|
__exportStar(require("./FilterConditions.js"), exports);
|
|
20
20
|
__exportStar(require("./Models/index.js"), exports);
|
|
21
21
|
__exportStar(require("./ModelInformation/index.js"), exports);
|
|
22
|
-
__exportStar(require("./ModelConfiguration/index.js"), exports);
|
|
23
22
|
__exportStar(require("./DNEConfiguration/index.js"), exports);
|
|
24
23
|
__exportStar(require("./CaseClassificationConfiguration/index.js"), exports);
|
|
25
24
|
__exportStar(require("./SmartSnippetsConfiguration/index.js"), exports);
|
|
@@ -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,
|
|
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"}
|
|
@@ -3,7 +3,6 @@ import Resource from '../Resource.js';
|
|
|
3
3
|
import CaseClassificationConfiguration from './CaseClassificationConfiguration/CaseClassificationConfiguration.js';
|
|
4
4
|
import DNEConfiguration from './DNEConfiguration/DNEConfiguration.js';
|
|
5
5
|
import SmartSnippetsConfiguration from './SmartSnippetsConfiguration/SmartSnippetsConfiguration.js';
|
|
6
|
-
import ModelConfiguration from './ModelConfiguration/ModelConfiguration.js';
|
|
7
6
|
import ModelInformation from './ModelInformation/ModelInformation.js';
|
|
8
7
|
import Models from './Models/Models.js';
|
|
9
8
|
import PQSConfiguration from './PQSConfiguration/PQSConfiguration.js';
|
|
@@ -14,7 +13,6 @@ class MachineLearning extends Resource {
|
|
|
14
13
|
static baseUrl = `/rest/organizations/${API.orgPlaceholder}/machinelearning`;
|
|
15
14
|
models;
|
|
16
15
|
modelInfo;
|
|
17
|
-
modelConfig;
|
|
18
16
|
dneConfig;
|
|
19
17
|
caseClassificationConfig;
|
|
20
18
|
smartSnippetsConfig;
|
|
@@ -26,7 +24,6 @@ class MachineLearning extends Resource {
|
|
|
26
24
|
this.serverlessApi = serverlessApi;
|
|
27
25
|
this.models = new Models(api, serverlessApi);
|
|
28
26
|
this.modelInfo = new ModelInformation(api, serverlessApi);
|
|
29
|
-
this.modelConfig = new ModelConfiguration(api, serverlessApi);
|
|
30
27
|
this.dneConfig = new DNEConfiguration(api, serverlessApi);
|
|
31
28
|
this.caseClassificationConfig = new CaseClassificationConfiguration(api, serverlessApi);
|
|
32
29
|
this.smartSnippetsConfig = new SmartSnippetsConfiguration(api, serverlessApi);
|
|
@@ -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,
|
|
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,gBAAgB,MAAM,wCAAwC,CAAC;AACtE,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,gBAAgB,MAAM,wCAAwC,CAAC;AACtE,OAAO,8BAA8B,MAAM,oEAAoE,CAAC;AAEhH,MAAqB,eAAgB,SAAQ,QAAQ;IAW3B;IAAoB;IAV1C,MAAM,CAAC,OAAO,GAAG,uBAAuB,GAAG,CAAC,cAAc,kBAAkB,CAAC;IAE7E,MAAM,CAAS;IACf,SAAS,CAAmB;IAC5B,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,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,SAAS,GAAG,IAAI,gBAAgB,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC1D,IAAI,CAAC,wBAAwB,GAAG,IAAI,+BAA+B,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QACxF,IAAI,CAAC,mBAAmB,GAAG,IAAI,0BAA0B,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC9E,IAAI,CAAC,SAAS,GAAG,IAAI,gBAAgB,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC1D,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"}
|
|
@@ -3,7 +3,6 @@ export * from './MachineLearningInterfaces.js';
|
|
|
3
3
|
export * from './FilterConditions.js';
|
|
4
4
|
export * from './Models/index.js';
|
|
5
5
|
export * from './ModelInformation/index.js';
|
|
6
|
-
export * from './ModelConfiguration/index.js';
|
|
7
6
|
export * from './DNEConfiguration/index.js';
|
|
8
7
|
export * from './CaseClassificationConfiguration/index.js';
|
|
9
8
|
export * from './SmartSnippetsConfiguration/index.js';
|
|
@@ -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
|
|
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"}
|
|
@@ -4,7 +4,6 @@ import CaseClassificationConfiguration from './CaseClassificationConfiguration/C
|
|
|
4
4
|
import DNEConfiguration from './DNEConfiguration/DNEConfiguration.js';
|
|
5
5
|
import SmartSnippetsConfiguration from './SmartSnippetsConfiguration/SmartSnippetsConfiguration.js';
|
|
6
6
|
import { MLModelCreated, RegistrationModel } from './MachineLearningInterfaces.js';
|
|
7
|
-
import ModelConfiguration from './ModelConfiguration/ModelConfiguration.js';
|
|
8
7
|
import ModelInformation from './ModelInformation/ModelInformation.js';
|
|
9
8
|
import Models from './Models/Models.js';
|
|
10
9
|
import PQSConfiguration from './PQSConfiguration/PQSConfiguration.js';
|
|
@@ -15,7 +14,6 @@ export default class MachineLearning extends Resource {
|
|
|
15
14
|
static baseUrl: string;
|
|
16
15
|
models: Models;
|
|
17
16
|
modelInfo: ModelInformation;
|
|
18
|
-
modelConfig: ModelConfiguration;
|
|
19
17
|
dneConfig: DNEConfiguration;
|
|
20
18
|
caseClassificationConfig: CaseClassificationConfiguration;
|
|
21
19
|
smartSnippetsConfig: SmartSnippetsConfiguration;
|
|
@@ -3,7 +3,6 @@ export * from './MachineLearningInterfaces.js';
|
|
|
3
3
|
export * from './FilterConditions.js';
|
|
4
4
|
export * from './Models/index.js';
|
|
5
5
|
export * from './ModelInformation/index.js';
|
|
6
|
-
export * from './ModelConfiguration/index.js';
|
|
7
6
|
export * from './DNEConfiguration/index.js';
|
|
8
7
|
export * from './CaseClassificationConfiguration/index.js';
|
|
9
8
|
export * from './SmartSnippetsConfiguration/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coveo/platform-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "43.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"jest-runner-eslint": "2.0.0",
|
|
51
51
|
"lint-staged": "13.2.0",
|
|
52
52
|
"prettier": "2.8.7",
|
|
53
|
-
"semantic-release": "
|
|
53
|
+
"semantic-release": "21.0.1",
|
|
54
54
|
"ts-jest": "29.0.5",
|
|
55
55
|
"tsjs": "4.2.1",
|
|
56
56
|
"tslib": "2.5.0",
|
|
@@ -1,18 +0,0 @@
|
|
|
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 ModelConfiguration extends Resource_js_1.default {
|
|
9
|
-
static getBaseUrl = (modelId) => `/rest/organizations/${APICore_js_1.default.orgPlaceholder}/machinelearning/models/${modelId}/configs`;
|
|
10
|
-
getAdvancedConfig(modelId) {
|
|
11
|
-
return this.api.get(`${ModelConfiguration.getBaseUrl(modelId)}/advanced`);
|
|
12
|
-
}
|
|
13
|
-
updateAdvancedConfig(modelId, modelConfigFileContents) {
|
|
14
|
-
return this.api.put(`${ModelConfiguration.getBaseUrl(modelId)}/advanced`, undefined, { body: modelConfigFileContents, headers: { 'Content-Type': 'application/json' } });
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.default = ModelConfiguration;
|
|
18
|
-
//# sourceMappingURL=ModelConfiguration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ModelConfiguration.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/ModelConfiguration/ModelConfiguration.ts"],"names":[],"mappings":";;;;;AAAA,qEAAsC;AACtC,oEAAyC;AAMzC,MAAqB,kBAAmB,SAAQ,qBAAQ;IACpD,MAAM,CAAC,UAAU,GAAG,CAAC,OAAe,EAAE,EAAE,CACpC,uBAAuB,oBAAG,CAAC,cAAc,2BAA2B,OAAO,UAAU,CAAC;IAE1F,iBAAiB,CAAC,OAAe;QAC7B,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAiC,GAAG,kBAAkB,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9G,CAAC;IAED,oBAAoB,CAAC,OAAe,EAAE,uBAA+B;QACjE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,kBAAkB,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,EACpD,SAAS,EACT,EAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,EAAE,EAAC,cAAc,EAAE,kBAAkB,EAAC,EAAC,CACjF,CAAC;IACN,CAAC;;kBAdgB,kBAAkB"}
|
package/dist/cjs/resources/MachineLearning/ModelConfiguration/ModelConfigurationInterfaces.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ModelConfigurationInterfaces.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/ModelConfiguration/ModelConfigurationInterfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +0,0 @@
|
|
|
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("./ModelConfiguration.js"), exports);
|
|
18
|
-
__exportStar(require("./ModelConfigurationInterfaces.js"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/ModelConfiguration/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,oEAAkD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import API from '../../../APICore.js';
|
|
2
|
-
import Resource from '../../Resource.js';
|
|
3
|
-
class ModelConfiguration extends Resource {
|
|
4
|
-
static getBaseUrl = (modelId) => `/rest/organizations/${API.orgPlaceholder}/machinelearning/models/${modelId}/configs`;
|
|
5
|
-
getAdvancedConfig(modelId) {
|
|
6
|
-
return this.api.get(`${ModelConfiguration.getBaseUrl(modelId)}/advanced`);
|
|
7
|
-
}
|
|
8
|
-
updateAdvancedConfig(modelId, modelConfigFileContents) {
|
|
9
|
-
return this.api.put(`${ModelConfiguration.getBaseUrl(modelId)}/advanced`, undefined, { body: modelConfigFileContents, headers: { 'Content-Type': 'application/json' } });
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export default ModelConfiguration;
|
|
13
|
-
//# sourceMappingURL=ModelConfiguration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ModelConfiguration.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/ModelConfiguration/ModelConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AAMzC,MAAqB,kBAAmB,SAAQ,QAAQ;IACpD,MAAM,CAAC,UAAU,GAAG,CAAC,OAAe,EAAE,EAAE,CACpC,uBAAuB,GAAG,CAAC,cAAc,2BAA2B,OAAO,UAAU,CAAC;IAE1F,iBAAiB,CAAC,OAAe;QAC7B,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAiC,GAAG,kBAAkB,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9G,CAAC;IAED,oBAAoB,CAAC,OAAe,EAAE,uBAA+B;QACjE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,kBAAkB,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,EACpD,SAAS,EACT,EAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,EAAE,EAAC,cAAc,EAAE,kBAAkB,EAAC,EAAC,CACjF,CAAC;IACN,CAAC;;eAdgB,kBAAkB"}
|
package/dist/esm/resources/MachineLearning/ModelConfiguration/ModelConfigurationInterfaces.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ModelConfigurationInterfaces.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/ModelConfiguration/ModelConfigurationInterfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/ModelConfiguration/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import Resource from '../../Resource.js';
|
|
2
|
-
import { AdvancedRegistrationConfigFile, AdvancedRegistrationConfigFileCreationResponse } from './ModelConfigurationInterfaces.js';
|
|
3
|
-
export default class ModelConfiguration extends Resource {
|
|
4
|
-
static getBaseUrl: (modelId: string) => string;
|
|
5
|
-
getAdvancedConfig(modelId: string): Promise<AdvancedRegistrationConfigFile>;
|
|
6
|
-
updateAdvancedConfig(modelId: string, modelConfigFileContents: string): Promise<AdvancedRegistrationConfigFileCreationResponse>;
|
|
7
|
-
}
|