@coveo/platform-client 54.3.1 → 54.5.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/CaseClassificationConfiguration/CaseClassificationConfiguration.js +20 -0
- package/dist/cjs/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfiguration.js.map +1 -1
- package/dist/cjs/resources/Pipelines/Pipelines.js.map +1 -1
- package/dist/esm/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfiguration.js +20 -0
- package/dist/esm/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfiguration.js.map +1 -1
- package/dist/esm/resources/Pipelines/Pipelines.js.map +1 -1
- package/dist/types/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfiguration.d.ts +17 -1
- package/dist/types/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfigurationInterfaces.d.ts +69 -9
- package/dist/types/resources/Pipelines/Pipelines.d.ts +2 -2
- package/dist/types/resources/Pipelines/PipelinesInterfaces.d.ts +10 -0
- package/package.json +1 -1
|
@@ -7,16 +7,30 @@ class CaseClassificationConfiguration extends Resource_js_1.default {
|
|
|
7
7
|
static baseUrl = `/rest/organizations/${APICore_js_1.default.orgPlaceholder}/machinelearning/configuration/caseclassif`;
|
|
8
8
|
static modelUrl = `${CaseClassificationConfiguration.baseUrl}/model`;
|
|
9
9
|
static fieldsUrl = `${CaseClassificationConfiguration.baseUrl}/fields`;
|
|
10
|
+
static fieldDocumentCountUrl = `${CaseClassificationConfiguration.baseUrl}/fields/{fieldName}/documentCount`;
|
|
11
|
+
static fieldValueCountUrl = `${CaseClassificationConfiguration.baseUrl}/fields/{fieldName}/valueCount`;
|
|
10
12
|
static previewUrl = `${CaseClassificationConfiguration.baseUrl}/preview`;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated create(configModel: CaseClassificationConfigurationModel) is kept for backward compatibility. You should now use MachineLearning `register(registration: RegistrationModel)` instead.
|
|
15
|
+
*/
|
|
11
16
|
create(configModel) {
|
|
12
17
|
return this.api.post(CaseClassificationConfiguration.modelUrl, configModel);
|
|
13
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated delete(modelId: string) is kept for backward compatibility. You should now use Models `delete(modelId: string)` instead.
|
|
21
|
+
*/
|
|
14
22
|
delete(modelId) {
|
|
15
23
|
return this.api.delete(`${CaseClassificationConfiguration.modelUrl}/${modelId}`);
|
|
16
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated get(modelId: string) is kept for backward compatibility. You should now use Models `get(modelId: string)` instead.
|
|
27
|
+
*/
|
|
17
28
|
get(modelId) {
|
|
18
29
|
return this.api.get(`${CaseClassificationConfiguration.modelUrl}/${modelId}`);
|
|
19
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated update(configModel: CaseClassificationConfigurationModel) is kept for backward compatibility. You should now use Models `update(modelId: string, update: RegistrationModel)` instead.
|
|
33
|
+
*/
|
|
20
34
|
update(configModel) {
|
|
21
35
|
return this.api.put(`${CaseClassificationConfiguration.modelUrl}/${configModel.modelId}`, configModel);
|
|
22
36
|
}
|
|
@@ -26,6 +40,12 @@ class CaseClassificationConfiguration extends Resource_js_1.default {
|
|
|
26
40
|
preview(params) {
|
|
27
41
|
return this.api.post(CaseClassificationConfiguration.previewUrl, params);
|
|
28
42
|
}
|
|
43
|
+
documentCount(params) {
|
|
44
|
+
return this.api.post(CaseClassificationConfiguration.fieldDocumentCountUrl, params);
|
|
45
|
+
}
|
|
46
|
+
valueCount(params) {
|
|
47
|
+
return this.api.post(CaseClassificationConfiguration.fieldValueCountUrl, params);
|
|
48
|
+
}
|
|
29
49
|
}
|
|
30
50
|
exports.default = CaseClassificationConfiguration;
|
|
31
51
|
//# sourceMappingURL=CaseClassificationConfiguration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseClassificationConfiguration.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfiguration.ts"],"names":[],"mappings":";;;AAAA,6EAAsC;AAEtC,4EAAyC;
|
|
1
|
+
{"version":3,"file":"CaseClassificationConfiguration.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfiguration.ts"],"names":[],"mappings":";;;AAAA,6EAAsC;AAEtC,4EAAyC;AAYzC,MAAqB,+BAAgC,SAAQ,qBAAQ;IACjE,MAAM,CAAC,OAAO,GAAG,uBAAuB,oBAAG,CAAC,cAAc,4CAA4C,CAAC;IACvG,MAAM,CAAC,QAAQ,GAAG,GAAG,+BAA+B,CAAC,OAAO,QAAQ,CAAC;IACrE,MAAM,CAAC,SAAS,GAAG,GAAG,+BAA+B,CAAC,OAAO,SAAS,CAAC;IACvE,MAAM,CAAC,qBAAqB,GAAG,GAAG,+BAA+B,CAAC,OAAO,mCAAmC,CAAC;IAC7G,MAAM,CAAC,kBAAkB,GAAG,GAAG,+BAA+B,CAAC,OAAO,gCAAgC,CAAC;IAEvG,MAAM,CAAC,UAAU,GAAG,GAAG,+BAA+B,CAAC,OAAO,UAAU,CAAC;IAEzE;;OAEG;IACH,MAAM,CAAC,WAAiE;QACpE,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,+BAA+B,CAAC,QAAQ,EACxC,WAAW,CACd,CAAC;IACN,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe;QAClB,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,+BAA+B,CAAC,QAAQ,IAAI,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,OAAe;QACf,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,+BAA+B,CAAC,QAAQ,IAAI,OAAO,EAAE,CAC3D,CAAC;IACN,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,WAAiD;QACpD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,+BAA+B,CAAC,QAAQ,IAAI,WAAW,CAAC,OAAO,EAAE,EACpE,WAAW,CACd,CAAC;IACN,CAAC;IAED,MAAM,CAAC,MAA6C;QAChD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAkC,+BAA+B,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAC7G,CAAC;IAED,OAAO,CAAC,MAAoD;QACxD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,+BAA+B,CAAC,UAAU,EAC1C,MAAM,CACT,CAAC;IACN,CAAC;IAED,aAAa,CAAC,MAA0C;QACpD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAqB,+BAA+B,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;IAC5G,CAAC;IAED,UAAU,CAAC,MAA0C;QACjD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAkB,+BAA+B,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC;IACtG,CAAC;;AA9DL,kDA+DC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pipelines.js","sourceRoot":"","sources":["../../../../src/resources/Pipelines/Pipelines.ts"],"names":[],"mappings":";;;AAEA,yEAAsC;AACtC,qFAAkD;AAClD,sGAAmE;AACnE,mGAAgE;
|
|
1
|
+
{"version":3,"file":"Pipelines.js","sourceRoot":"","sources":["../../../../src/resources/Pipelines/Pipelines.ts"],"names":[],"mappings":";;;AAEA,yEAAsC;AACtC,qFAAkD;AAClD,sGAAmE;AACnE,mGAAgE;AAShE,mGAAgE;AAChE,sGAAmE;AACnE,uFAAoD;AAEpD,MAAqB,SAAU,SAAQ,qBAAQ;IAY7B;IACA;IAZd,MAAM,CAAC,iBAAiB,GAAG,iCAAiC,CAAC;IAC7D,MAAM,CAAC,iBAAiB,GAAG,iCAAiC,CAAC;IAE7D,YAAY,CAAiB;IAC7B,UAAU,CAAa;IACvB,aAAa,CAAiB;IAC9B,UAAU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AAG,SAAS,CAAC,iBAAiB,IAAI,UAAU,EAAE,EAAE;YAC3D,cAAc,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc;SAC1C,CAAC,CACL,CAAC;IACN,CAAC;IAED,MAAM,CAAC,QAA6B;QAChC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,iBAAiB,IAAI,QAAQ,CAAC,EAAE,EAAE,EAAE;YAC5D,cAAc,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc;SAC1C,CAAC,EACF,QAAQ,CACX,CAAC;IACN,CAAC;IAED,SAAS,CAAC,UAAkB,EAAE,gBAAmC;QAC7D,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,IAAI,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,iBAAiB,IAAI,UAAU,YAAY,EAAE;YACrE,cAAc,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc;SAC1C,CAAC,EACF,gBAAgB,CACnB,CAAC;IACN,CAAC;IAED,MAAM,CAAC,QAA0B;QAC7B,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,iBAAiB,EAAE;YACxC,cAAc,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc;SAC1C,CAAC,EACF,QAAQ,CACX,CAAC;IACN,CAAC;;AAxEL,4BAyEC"}
|
|
@@ -4,16 +4,30 @@ export default class CaseClassificationConfiguration extends Resource {
|
|
|
4
4
|
static baseUrl = `/rest/organizations/${API.orgPlaceholder}/machinelearning/configuration/caseclassif`;
|
|
5
5
|
static modelUrl = `${CaseClassificationConfiguration.baseUrl}/model`;
|
|
6
6
|
static fieldsUrl = `${CaseClassificationConfiguration.baseUrl}/fields`;
|
|
7
|
+
static fieldDocumentCountUrl = `${CaseClassificationConfiguration.baseUrl}/fields/{fieldName}/documentCount`;
|
|
8
|
+
static fieldValueCountUrl = `${CaseClassificationConfiguration.baseUrl}/fields/{fieldName}/valueCount`;
|
|
7
9
|
static previewUrl = `${CaseClassificationConfiguration.baseUrl}/preview`;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated create(configModel: CaseClassificationConfigurationModel) is kept for backward compatibility. You should now use MachineLearning `register(registration: RegistrationModel)` instead.
|
|
12
|
+
*/
|
|
8
13
|
create(configModel) {
|
|
9
14
|
return this.api.post(CaseClassificationConfiguration.modelUrl, configModel);
|
|
10
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated delete(modelId: string) is kept for backward compatibility. You should now use Models `delete(modelId: string)` instead.
|
|
18
|
+
*/
|
|
11
19
|
delete(modelId) {
|
|
12
20
|
return this.api.delete(`${CaseClassificationConfiguration.modelUrl}/${modelId}`);
|
|
13
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated get(modelId: string) is kept for backward compatibility. You should now use Models `get(modelId: string)` instead.
|
|
24
|
+
*/
|
|
14
25
|
get(modelId) {
|
|
15
26
|
return this.api.get(`${CaseClassificationConfiguration.modelUrl}/${modelId}`);
|
|
16
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated update(configModel: CaseClassificationConfigurationModel) is kept for backward compatibility. You should now use Models `update(modelId: string, update: RegistrationModel)` instead.
|
|
30
|
+
*/
|
|
17
31
|
update(configModel) {
|
|
18
32
|
return this.api.put(`${CaseClassificationConfiguration.modelUrl}/${configModel.modelId}`, configModel);
|
|
19
33
|
}
|
|
@@ -23,5 +37,11 @@ export default class CaseClassificationConfiguration extends Resource {
|
|
|
23
37
|
preview(params) {
|
|
24
38
|
return this.api.post(CaseClassificationConfiguration.previewUrl, params);
|
|
25
39
|
}
|
|
40
|
+
documentCount(params) {
|
|
41
|
+
return this.api.post(CaseClassificationConfiguration.fieldDocumentCountUrl, params);
|
|
42
|
+
}
|
|
43
|
+
valueCount(params) {
|
|
44
|
+
return this.api.post(CaseClassificationConfiguration.fieldValueCountUrl, params);
|
|
45
|
+
}
|
|
26
46
|
}
|
|
27
47
|
//# sourceMappingURL=CaseClassificationConfiguration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseClassificationConfiguration.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAEtC,OAAO,QAAQ,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"CaseClassificationConfiguration.js","sourceRoot":"","sources":["../../../../../src/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAEtC,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AAYzC,MAAM,CAAC,OAAO,OAAO,+BAAgC,SAAQ,QAAQ;IACjE,MAAM,CAAC,OAAO,GAAG,uBAAuB,GAAG,CAAC,cAAc,4CAA4C,CAAC;IACvG,MAAM,CAAC,QAAQ,GAAG,GAAG,+BAA+B,CAAC,OAAO,QAAQ,CAAC;IACrE,MAAM,CAAC,SAAS,GAAG,GAAG,+BAA+B,CAAC,OAAO,SAAS,CAAC;IACvE,MAAM,CAAC,qBAAqB,GAAG,GAAG,+BAA+B,CAAC,OAAO,mCAAmC,CAAC;IAC7G,MAAM,CAAC,kBAAkB,GAAG,GAAG,+BAA+B,CAAC,OAAO,gCAAgC,CAAC;IAEvG,MAAM,CAAC,UAAU,GAAG,GAAG,+BAA+B,CAAC,OAAO,UAAU,CAAC;IAEzE;;OAEG;IACH,MAAM,CAAC,WAAiE;QACpE,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,+BAA+B,CAAC,QAAQ,EACxC,WAAW,CACd,CAAC;IACN,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe;QAClB,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,+BAA+B,CAAC,QAAQ,IAAI,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,OAAe;QACf,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,+BAA+B,CAAC,QAAQ,IAAI,OAAO,EAAE,CAC3D,CAAC;IACN,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,WAAiD;QACpD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAG,+BAA+B,CAAC,QAAQ,IAAI,WAAW,CAAC,OAAO,EAAE,EACpE,WAAW,CACd,CAAC;IACN,CAAC;IAED,MAAM,CAAC,MAA6C;QAChD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAkC,+BAA+B,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAC7G,CAAC;IAED,OAAO,CAAC,MAAoD;QACxD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,+BAA+B,CAAC,UAAU,EAC1C,MAAM,CACT,CAAC;IACN,CAAC;IAED,aAAa,CAAC,MAA0C;QACpD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAqB,+BAA+B,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;IAC5G,CAAC;IAED,UAAU,CAAC,MAA0C;QACjD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAkB,+BAA+B,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC;IACtG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pipelines.js","sourceRoot":"","sources":["../../../../src/resources/Pipelines/Pipelines.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,eAAe,MAAM,sCAAsC,CAAC;AACnE,OAAO,cAAc,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"Pipelines.js","sourceRoot":"","sources":["../../../../src/resources/Pipelines/Pipelines.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,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,iBAAiB,EAAE;YACxC,cAAc,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc;SAC1C,CAAC,EACF,QAAQ,CACX,CAAC;IACN,CAAC"}
|
|
@@ -1,15 +1,31 @@
|
|
|
1
1
|
import { New } from '../../BaseInterfaces.js';
|
|
2
2
|
import Resource from '../../Resource.js';
|
|
3
|
-
import { CaseClassificationConfigurationModel, CaseClassificationContentFields, CaseClassificationContentFieldsParams, CaseClassificationDocumentGroupPreview, CaseClassificationDocumentGroupPreviewParams } from './CaseClassificationConfigurationInterfaces.js';
|
|
3
|
+
import { CaseClassificationConfigurationModel, CaseClassificationContentFields, CaseClassificationContentFieldsParams, CaseClassificationDocumentGroupPreview, CaseClassificationDocumentGroupPreviewParams, CaseClassificationFieldCountParams, FieldDocumentCount, FieldValueCount } from './CaseClassificationConfigurationInterfaces.js';
|
|
4
4
|
export default class CaseClassificationConfiguration extends Resource {
|
|
5
5
|
static baseUrl: string;
|
|
6
6
|
static modelUrl: string;
|
|
7
7
|
static fieldsUrl: string;
|
|
8
|
+
static fieldDocumentCountUrl: string;
|
|
9
|
+
static fieldValueCountUrl: string;
|
|
8
10
|
static previewUrl: string;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated create(configModel: CaseClassificationConfigurationModel) is kept for backward compatibility. You should now use MachineLearning `register(registration: RegistrationModel)` instead.
|
|
13
|
+
*/
|
|
9
14
|
create(configModel: New<CaseClassificationConfigurationModel, 'modelId'>): Promise<CaseClassificationConfigurationModel>;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated delete(modelId: string) is kept for backward compatibility. You should now use Models `delete(modelId: string)` instead.
|
|
17
|
+
*/
|
|
10
18
|
delete(modelId: string): Promise<Record<string, unknown>>;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated get(modelId: string) is kept for backward compatibility. You should now use Models `get(modelId: string)` instead.
|
|
21
|
+
*/
|
|
11
22
|
get(modelId: string): Promise<CaseClassificationConfigurationModel>;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated update(configModel: CaseClassificationConfigurationModel) is kept for backward compatibility. You should now use Models `update(modelId: string, update: RegistrationModel)` instead.
|
|
25
|
+
*/
|
|
12
26
|
update(configModel: CaseClassificationConfigurationModel): Promise<CaseClassificationConfigurationModel>;
|
|
13
27
|
fields(params: CaseClassificationContentFieldsParams): Promise<CaseClassificationContentFields>;
|
|
14
28
|
preview(params: CaseClassificationDocumentGroupPreviewParams): Promise<CaseClassificationDocumentGroupPreview>;
|
|
29
|
+
documentCount(params: CaseClassificationFieldCountParams): Promise<FieldDocumentCount>;
|
|
30
|
+
valueCount(params: CaseClassificationFieldCountParams): Promise<FieldValueCount>;
|
|
15
31
|
}
|
|
@@ -42,7 +42,7 @@ export interface CaseClassificationConfigurationModel {
|
|
|
42
42
|
*/
|
|
43
43
|
modelDisplayName: string;
|
|
44
44
|
/**
|
|
45
|
-
* The names of the sources
|
|
45
|
+
* The names of the sources that contain the cases that the model will use.
|
|
46
46
|
*/
|
|
47
47
|
sources: string[];
|
|
48
48
|
/**
|
|
@@ -55,8 +55,7 @@ export interface CaseClassificationConfigurationModel {
|
|
|
55
55
|
*/
|
|
56
56
|
caseIdField: string;
|
|
57
57
|
/**
|
|
58
|
-
* The
|
|
59
|
-
* Must contain an export period or a start time and end time.
|
|
58
|
+
* The case creation date range for the cases the model will use.
|
|
60
59
|
*/
|
|
61
60
|
caseExtractionPeriod?: ExtractionPeriod;
|
|
62
61
|
/**
|
|
@@ -70,7 +69,7 @@ export interface CaseClassificationConfigurationModel {
|
|
|
70
69
|
*/
|
|
71
70
|
fieldsToPredict: string[];
|
|
72
71
|
/**
|
|
73
|
-
* The field value to use as language.
|
|
72
|
+
* The name of the field that contains the value to use as the language.
|
|
74
73
|
*/
|
|
75
74
|
languageField?: string;
|
|
76
75
|
}
|
|
@@ -85,11 +84,11 @@ export interface CaseClassificationDocumentGroupPreviewParams {
|
|
|
85
84
|
*/
|
|
86
85
|
caseFilterConditions: FilterConditions[];
|
|
87
86
|
/**
|
|
88
|
-
* The field value to use as language.
|
|
87
|
+
* The name of the field that contains the value to use as the language.
|
|
89
88
|
*/
|
|
90
89
|
languageField: string;
|
|
91
90
|
/**
|
|
92
|
-
* The names of the sources
|
|
91
|
+
* The names of the sources that contain the cases that the model will use.
|
|
93
92
|
*/
|
|
94
93
|
sources: string[];
|
|
95
94
|
}
|
|
@@ -121,8 +120,7 @@ export interface CaseClassificationDocumentGroupPreview {
|
|
|
121
120
|
}
|
|
122
121
|
export interface CaseClassificationContentFieldsParams {
|
|
123
122
|
/**
|
|
124
|
-
* The
|
|
125
|
-
* Must contain an export period or a start time and end time.
|
|
123
|
+
* The case creation date range for the cases the model will use.
|
|
126
124
|
*/
|
|
127
125
|
caseExtractionPeriod: ExtractionPeriod;
|
|
128
126
|
/**
|
|
@@ -134,7 +132,7 @@ export interface CaseClassificationContentFieldsParams {
|
|
|
134
132
|
*/
|
|
135
133
|
languageField: string;
|
|
136
134
|
/**
|
|
137
|
-
* The names of the sources
|
|
135
|
+
* The names of the sources that contain the cases that the model will use.
|
|
138
136
|
*/
|
|
139
137
|
sources: string[];
|
|
140
138
|
}
|
|
@@ -145,3 +143,65 @@ export interface CaseClassificationContentFields {
|
|
|
145
143
|
fields: CaseClassificationContentField[];
|
|
146
144
|
query: string;
|
|
147
145
|
}
|
|
146
|
+
interface CaseClassificationFieldCountAdvancedMode {
|
|
147
|
+
/**
|
|
148
|
+
* The query to use when building the model.
|
|
149
|
+
*/
|
|
150
|
+
advancedQuery: string;
|
|
151
|
+
/**
|
|
152
|
+
* The names of the sources that contain the cases that the model will use.
|
|
153
|
+
*/
|
|
154
|
+
sources?: never;
|
|
155
|
+
/**
|
|
156
|
+
* An array of filtering conditions.
|
|
157
|
+
*/
|
|
158
|
+
filterConditions?: never;
|
|
159
|
+
/**
|
|
160
|
+
* The name of the field that contains the value to use as the language.
|
|
161
|
+
*/
|
|
162
|
+
languageField?: never;
|
|
163
|
+
/**
|
|
164
|
+
* The case creation date range for the cases the model will use.
|
|
165
|
+
*/
|
|
166
|
+
caseExtractionPeriod?: never;
|
|
167
|
+
}
|
|
168
|
+
interface CaseClassificationFieldCountStandardMode {
|
|
169
|
+
/**
|
|
170
|
+
* The names of the sources that contain the cases that the model will use.
|
|
171
|
+
*/
|
|
172
|
+
sources: string[];
|
|
173
|
+
/**
|
|
174
|
+
* An array of filtering conditions.
|
|
175
|
+
*/
|
|
176
|
+
filterConditions?: FilterConditions[];
|
|
177
|
+
/**
|
|
178
|
+
* The name of the field that contains the value to use as the language.
|
|
179
|
+
*/
|
|
180
|
+
languageField: string;
|
|
181
|
+
/**
|
|
182
|
+
* The case creation date range for the cases the model will use.
|
|
183
|
+
*/
|
|
184
|
+
caseExtractionPeriod: ExtractionPeriod;
|
|
185
|
+
/**
|
|
186
|
+
* The query to use when building the model.
|
|
187
|
+
*/
|
|
188
|
+
advancedQuery?: never;
|
|
189
|
+
}
|
|
190
|
+
export type CaseClassificationFieldCountParams = CaseClassificationFieldCountAdvancedMode | CaseClassificationFieldCountStandardMode;
|
|
191
|
+
export interface FieldValueCount {
|
|
192
|
+
/**
|
|
193
|
+
* The count of values matching a field.
|
|
194
|
+
*/
|
|
195
|
+
valueCount: number;
|
|
196
|
+
/**
|
|
197
|
+
* Indicates the presence of more values than the one returned in the count.
|
|
198
|
+
*/
|
|
199
|
+
areMoreValuesAvailable: boolean;
|
|
200
|
+
}
|
|
201
|
+
export interface FieldDocumentCount {
|
|
202
|
+
/**
|
|
203
|
+
* The count of items matching a field.
|
|
204
|
+
*/
|
|
205
|
+
documentCount: number;
|
|
206
|
+
}
|
|
207
|
+
export {};
|
|
@@ -4,7 +4,7 @@ import Resource from '../Resource.js';
|
|
|
4
4
|
import Condition from './Conditions/Condition.js';
|
|
5
5
|
import FacetStateRules from './FacetStateRules/FacetStateRules.js';
|
|
6
6
|
import MLAssociations from './MLAssociations/MLAssociations.js';
|
|
7
|
-
import { ListPipelinesOptions, ListPipelinesReturnVariant, NewPipelineModel, PipelineModel, UpdatePipelineModel } from './PipelinesInterfaces.js';
|
|
7
|
+
import { ListPipelinesOptions, ListPipelinesReturnVariant, NewPipelineModel, PipelineDetailedModel, PipelineModel, UpdatePipelineModel } from './PipelinesInterfaces.js';
|
|
8
8
|
import ResultRankings from './ResultRankings/ResultRankings.js';
|
|
9
9
|
import StatementGroups from './StatementGroups/StatementGroups.js';
|
|
10
10
|
import Statements from './Statements/Statements.js';
|
|
@@ -21,7 +21,7 @@ export default class Pipelines extends Resource {
|
|
|
21
21
|
facetRules: FacetStateRules;
|
|
22
22
|
constructor(api: API, serverlessApi: API);
|
|
23
23
|
list<ListPipelinesVariant extends ListPipelinesOptions>(options?: ListPipelinesVariant): Promise<ListPipelinesReturnVariant<ListPipelinesVariant>>;
|
|
24
|
-
get(pipelineId: string): Promise<
|
|
24
|
+
get(pipelineId: string): Promise<PipelineDetailedModel>;
|
|
25
25
|
delete(pipelineId: string): Promise<Record<string, unknown>>;
|
|
26
26
|
update(pipeline: UpdatePipelineModel): Promise<PipelineModel>;
|
|
27
27
|
duplicate(pipelineId: string, granularResource?: GranularResource): Promise<PipelineModel>;
|
|
@@ -166,6 +166,16 @@ export interface PipelineModel extends PipelineShared {
|
|
|
166
166
|
[key: string]: number | undefined;
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
+
export interface PipelineDetailedModel extends PipelineModel {
|
|
170
|
+
/**
|
|
171
|
+
* The unique identifier of query pipeline A in the A/B test.
|
|
172
|
+
*
|
|
173
|
+
* See also the splitTestName, splitTestRatio, and splitTestEnabled properties
|
|
174
|
+
*
|
|
175
|
+
* @example: '22a3860e-fa6f-4e64-a9f1-ef738af0786e'
|
|
176
|
+
*/
|
|
177
|
+
splitTestOriginalPipeline?: string;
|
|
178
|
+
}
|
|
169
179
|
export interface NewPipelineModel extends PipelineShared, GranularResource {
|
|
170
180
|
}
|
|
171
181
|
export interface UpdatePipelineModel extends PipelineModel, GranularResource {
|