@coveo/platform-client 35.4.0 → 35.6.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/definitions/resources/Connectivity/ConnectivityInterface.d.ts +29 -0
- package/dist/definitions/resources/Connectivity/CrawlingModules.d.ts +9 -0
- package/dist/definitions/resources/Connectivity/index.d.ts +1 -0
- package/dist/definitions/resources/Pipelines/Pipelines.d.ts +2 -2
- package/dist/definitions/resources/Pipelines/PipelinesInterfaces.d.ts +32 -2
- package/dist/resources/Connectivity/ConnectivityInterface.js +14 -1
- package/dist/resources/Connectivity/ConnectivityInterface.js.map +1 -1
- package/dist/resources/Connectivity/CrawlingModules.js +24 -0
- package/dist/resources/Connectivity/CrawlingModules.js.map +1 -0
- package/dist/resources/Connectivity/index.js +1 -0
- package/dist/resources/Connectivity/index.js.map +1 -1
- package/dist/resources/Pipelines/Pipelines.js.map +1 -1
- package/package.json +3 -3
|
@@ -14,3 +14,32 @@ export declare enum LogRequestResourceType {
|
|
|
14
14
|
SOURCE = "SOURCE",
|
|
15
15
|
SECURITY_PROVIDER = "SECURITY_PROVIDER"
|
|
16
16
|
}
|
|
17
|
+
export declare enum CrawlingModuleLogRequestLogType {
|
|
18
|
+
MAESTRO = "MAESTRO",
|
|
19
|
+
WORKER = "WORKER"
|
|
20
|
+
}
|
|
21
|
+
export declare enum CrawlingModuleLogRequestState {
|
|
22
|
+
CREATED = "CREATED",
|
|
23
|
+
ERROR = "ERROR",
|
|
24
|
+
RUNNING = "RUNNING",
|
|
25
|
+
SUCCESSFUL = "SUCCESSFUL",
|
|
26
|
+
TIMEOUT = "TIMEOUT"
|
|
27
|
+
}
|
|
28
|
+
export interface CrawlingModuleLogRequestModel {
|
|
29
|
+
createdDate: number;
|
|
30
|
+
id: string;
|
|
31
|
+
instanceId: string;
|
|
32
|
+
logType: CrawlingModuleLogRequestLogType;
|
|
33
|
+
operationId: string;
|
|
34
|
+
state: CrawlingModuleLogRequestState;
|
|
35
|
+
}
|
|
36
|
+
export interface CreateCrawlingModuleLogRequestModel {
|
|
37
|
+
instanceId: string;
|
|
38
|
+
logType: CrawlingModuleLogRequestLogType;
|
|
39
|
+
operationId: string;
|
|
40
|
+
}
|
|
41
|
+
export interface CrawlingModuleLogRequestDownloadModel {
|
|
42
|
+
info: string;
|
|
43
|
+
state: CrawlingModuleLogRequestState;
|
|
44
|
+
url: string;
|
|
45
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Resource from '../Resource';
|
|
2
|
+
import { PageModel } from '../BaseInterfaces';
|
|
3
|
+
import { CrawlingModuleLogRequestDownloadModel, CrawlingModuleLogRequestModel, CrawlingModuleLogRequestState, CreateCrawlingModuleLogRequestModel } from './ConnectivityInterface';
|
|
4
|
+
export default class CrawlingModules extends Resource {
|
|
5
|
+
static baseUrl: string;
|
|
6
|
+
getLogRequests(crawlingModuleId: string, requestState: CrawlingModuleLogRequestState): Promise<PageModel<CrawlingModuleLogRequestModel, "items">>;
|
|
7
|
+
createLogRequest(crawlingModuleId: string, requestModel: CreateCrawlingModuleLogRequestModel): Promise<CreateCrawlingModuleLogRequestModel>;
|
|
8
|
+
getLogRequestDownload(crawlingModuleId: string, logRequestId: string): Promise<CrawlingModuleLogRequestDownloadModel>;
|
|
9
|
+
}
|
|
@@ -4,7 +4,7 @@ import Resource from '../Resource';
|
|
|
4
4
|
import Condition from './Conditions/Condition';
|
|
5
5
|
import FacetStateRules from './FacetStateRules/FacetStateRules';
|
|
6
6
|
import MLAssociations from './MLAssociations/MLAssociations';
|
|
7
|
-
import { ListPipelinesOptions, NewPipelineModel, PipelineBackendVersion, PipelineModel, UpdatePipelineModel } from './PipelinesInterfaces';
|
|
7
|
+
import { ListPipelinesOptions, ListPipelinesReturnVariant, NewPipelineModel, PipelineBackendVersion, PipelineModel, UpdatePipelineModel } from './PipelinesInterfaces';
|
|
8
8
|
import ResultRankings from './ResultRankings/ResultRankings';
|
|
9
9
|
import StatementGroups from './StatementGroups/StatementGroups';
|
|
10
10
|
import Statements from './Statements/Statements';
|
|
@@ -21,7 +21,7 @@ export default class Pipelines extends Resource {
|
|
|
21
21
|
facetRules: FacetStateRules;
|
|
22
22
|
constructor(api: API, serverlessApi: API);
|
|
23
23
|
getMLVersion(): Promise<PipelineBackendVersion>;
|
|
24
|
-
list(options?:
|
|
24
|
+
list<ListPipelinesVariant extends ListPipelinesOptions>(options?: ListPipelinesVariant): Promise<ListPipelinesReturnVariant<ListPipelinesVariant>>;
|
|
25
25
|
get(pipelineId: string): Promise<PipelineModel>;
|
|
26
26
|
delete(pipelineId: string): Promise<Record<string, unknown>>;
|
|
27
27
|
update(pipeline: UpdatePipelineModel): Promise<PipelineModel>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GranularResource, Paginated } from '../BaseInterfaces';
|
|
1
|
+
import { GranularResource, PageModel, Paginated } from '../BaseInterfaces';
|
|
2
2
|
import { ConditionModel } from './Conditions';
|
|
3
3
|
export interface PipelineBackendVersion {
|
|
4
4
|
version: '1' | '2';
|
|
@@ -174,10 +174,40 @@ export interface NewPipelineModel extends PipelineShared, GranularResource {
|
|
|
174
174
|
export interface UpdatePipelineModel extends PipelineModel, GranularResource {
|
|
175
175
|
}
|
|
176
176
|
export interface ListPipelinesOptions extends Paginated {
|
|
177
|
+
/**
|
|
178
|
+
* Whether to sort the results in ascending order.
|
|
179
|
+
*/
|
|
177
180
|
isOrderAscending?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* The query filter to match.
|
|
183
|
+
*
|
|
184
|
+
* This allows you to search within query pipeline statement definitions and descriptions.
|
|
185
|
+
*
|
|
186
|
+
* By default, results are not required to match a specific query filter.
|
|
187
|
+
*/
|
|
178
188
|
filter?: string;
|
|
179
|
-
|
|
189
|
+
/**
|
|
190
|
+
* The sort criteria to apply on the results.
|
|
191
|
+
*
|
|
192
|
+
* Allowed values: `definition`, `description`, and `position`.
|
|
193
|
+
*
|
|
194
|
+
* Default: `position`
|
|
195
|
+
*/
|
|
196
|
+
sortby?: 'definition' | 'description' | 'position';
|
|
180
197
|
feature?: string;
|
|
198
|
+
/**
|
|
199
|
+
* The unique identifier of the target Coveo Cloud organization.
|
|
200
|
+
*
|
|
201
|
+
* Specifying a value for this parameter is only necessary when you are authenticating the API call with an OAuth2 token.
|
|
202
|
+
*/
|
|
181
203
|
organizationId?: string;
|
|
204
|
+
/**
|
|
205
|
+
* Whether to enable pagination.
|
|
206
|
+
*/
|
|
207
|
+
enablePagination?: boolean;
|
|
182
208
|
}
|
|
209
|
+
export declare type PaginatedListPipelinesModel = Omit<PageModel<PipelineModel>, 'totalPages'>;
|
|
210
|
+
export declare type ListPipelinesReturnVariant<ListPipelineVariant> = ListPipelineVariant extends {
|
|
211
|
+
enablePagination: true;
|
|
212
|
+
} ? PaginatedListPipelinesModel : PipelineModel[];
|
|
183
213
|
export {};
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LogRequestResourceType = void 0;
|
|
3
|
+
exports.CrawlingModuleLogRequestState = exports.CrawlingModuleLogRequestLogType = exports.LogRequestResourceType = void 0;
|
|
4
4
|
var LogRequestResourceType;
|
|
5
5
|
(function (LogRequestResourceType) {
|
|
6
6
|
LogRequestResourceType["SOURCE"] = "SOURCE";
|
|
7
7
|
LogRequestResourceType["SECURITY_PROVIDER"] = "SECURITY_PROVIDER";
|
|
8
8
|
})(LogRequestResourceType = exports.LogRequestResourceType || (exports.LogRequestResourceType = {}));
|
|
9
|
+
var CrawlingModuleLogRequestLogType;
|
|
10
|
+
(function (CrawlingModuleLogRequestLogType) {
|
|
11
|
+
CrawlingModuleLogRequestLogType["MAESTRO"] = "MAESTRO";
|
|
12
|
+
CrawlingModuleLogRequestLogType["WORKER"] = "WORKER";
|
|
13
|
+
})(CrawlingModuleLogRequestLogType = exports.CrawlingModuleLogRequestLogType || (exports.CrawlingModuleLogRequestLogType = {}));
|
|
14
|
+
var CrawlingModuleLogRequestState;
|
|
15
|
+
(function (CrawlingModuleLogRequestState) {
|
|
16
|
+
CrawlingModuleLogRequestState["CREATED"] = "CREATED";
|
|
17
|
+
CrawlingModuleLogRequestState["ERROR"] = "ERROR";
|
|
18
|
+
CrawlingModuleLogRequestState["RUNNING"] = "RUNNING";
|
|
19
|
+
CrawlingModuleLogRequestState["SUCCESSFUL"] = "SUCCESSFUL";
|
|
20
|
+
CrawlingModuleLogRequestState["TIMEOUT"] = "TIMEOUT";
|
|
21
|
+
})(CrawlingModuleLogRequestState = exports.CrawlingModuleLogRequestState || (exports.CrawlingModuleLogRequestState = {}));
|
|
9
22
|
//# sourceMappingURL=ConnectivityInterface.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectivityInterface.js","sourceRoot":"","sources":["../../../src/resources/Connectivity/ConnectivityInterface.ts"],"names":[],"mappings":";;;AAeA,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAC9B,2CAAiB,CAAA;IACjB,iEAAuC,CAAA;AAC3C,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC"}
|
|
1
|
+
{"version":3,"file":"ConnectivityInterface.js","sourceRoot":"","sources":["../../../src/resources/Connectivity/ConnectivityInterface.ts"],"names":[],"mappings":";;;AAeA,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAC9B,2CAAiB,CAAA;IACjB,iEAAuC,CAAA;AAC3C,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAED,IAAY,+BAGX;AAHD,WAAY,+BAA+B;IACvC,sDAAmB,CAAA;IACnB,oDAAiB,CAAA;AACrB,CAAC,EAHW,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAG1C;AAED,IAAY,6BAMX;AAND,WAAY,6BAA6B;IACrC,oDAAmB,CAAA;IACnB,gDAAe,CAAA;IACf,oDAAmB,CAAA;IACnB,0DAAyB,CAAA;IACzB,oDAAmB,CAAA;AACvB,CAAC,EANW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAMxC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
var Resource_1 = tslib_1.__importDefault(require("../Resource"));
|
|
5
|
+
var APICore_1 = tslib_1.__importDefault(require("../../APICore"));
|
|
6
|
+
var CrawlingModules = /** @class */ (function (_super) {
|
|
7
|
+
tslib_1.__extends(CrawlingModules, _super);
|
|
8
|
+
function CrawlingModules() {
|
|
9
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
10
|
+
}
|
|
11
|
+
CrawlingModules.prototype.getLogRequests = function (crawlingModuleId, requestState) {
|
|
12
|
+
return this.api.get(this.buildPath("".concat(CrawlingModules.baseUrl, "/").concat(crawlingModuleId, "/logrequests"), { state: requestState }));
|
|
13
|
+
};
|
|
14
|
+
CrawlingModules.prototype.createLogRequest = function (crawlingModuleId, requestModel) {
|
|
15
|
+
return this.api.post("".concat(CrawlingModules.baseUrl, "/").concat(crawlingModuleId, "/logrequests"), requestModel);
|
|
16
|
+
};
|
|
17
|
+
CrawlingModules.prototype.getLogRequestDownload = function (crawlingModuleId, logRequestId) {
|
|
18
|
+
return this.api.get("".concat(CrawlingModules.baseUrl, "/").concat(crawlingModuleId, "/logrequests/").concat(logRequestId, "/download"));
|
|
19
|
+
};
|
|
20
|
+
CrawlingModules.baseUrl = "/rest/organizations/".concat(APICore_1.default.orgPlaceholder, "/crawlingmodules");
|
|
21
|
+
return CrawlingModules;
|
|
22
|
+
}(Resource_1.default));
|
|
23
|
+
exports.default = CrawlingModules;
|
|
24
|
+
//# sourceMappingURL=CrawlingModules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CrawlingModules.js","sourceRoot":"","sources":["../../../src/resources/Connectivity/CrawlingModules.ts"],"names":[],"mappings":";;;AAAA,iEAAmC;AACnC,kEAAgC;AAShC;IAA6C,2CAAQ;IAArD;;IAqBA,CAAC;IAlBG,wCAAc,GAAd,UAAe,gBAAwB,EAAE,YAA2C;QAChF,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,SAAS,CAAC,UAAG,eAAe,CAAC,OAAO,cAAI,gBAAgB,iBAAc,EAAE,EAAC,KAAK,EAAE,YAAY,EAAC,CAAC,CACtG,CAAC;IACN,CAAC;IAED,0CAAgB,GAAhB,UAAiB,gBAAwB,EAAE,YAAiD;QACxF,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,UAAG,eAAe,CAAC,OAAO,cAAI,gBAAgB,iBAAc,EAC5D,YAAY,CACf,CAAC;IACN,CAAC;IAED,+CAAqB,GAArB,UAAsB,gBAAwB,EAAE,YAAoB;QAChE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,UAAG,eAAe,CAAC,OAAO,cAAI,gBAAgB,0BAAgB,YAAY,cAAW,CACxF,CAAC;IACN,CAAC;IAnBM,uBAAO,GAAG,8BAAuB,iBAAG,CAAC,cAAc,qBAAkB,CAAC;IAoBjF,sBAAC;CAAA,AArBD,CAA6C,kBAAQ,GAqBpD;kBArBoB,eAAe"}
|
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./Connectivity"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./CrawlingModules"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./ConnectivityInterface"), exports);
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Connectivity/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,kEAAwC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Connectivity/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,4DAAkC;AAClC,kEAAwC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pipelines.js","sourceRoot":"","sources":["../../../src/resources/Pipelines/Pipelines.ts"],"names":[],"mappings":";;;AAEA,iEAAmC;AACnC,6EAA+C;AAC/C,8FAAgE;AAChE,2FAA6D;
|
|
1
|
+
{"version":3,"file":"Pipelines.js","sourceRoot":"","sources":["../../../src/resources/Pipelines/Pipelines.ts"],"names":[],"mappings":";;;AAEA,iEAAmC;AACnC,6EAA+C;AAC/C,8FAAgE;AAChE,2FAA6D;AAS7D,2FAA6D;AAC7D,8FAAgE;AAChE,+EAAiD;AAEjD;IAAuC,qCAAQ;IAW3C,mBAAsB,GAAQ,EAAY,aAAkB;QAA5D,YACI,kBAAM,GAAG,EAAE,aAAa,CAAC,SAQ5B;QATqB,SAAG,GAAH,GAAG,CAAK;QAAY,mBAAa,GAAb,aAAa,CAAK;QAGxD,KAAI,CAAC,YAAY,GAAG,IAAI,wBAAc,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC3D,KAAI,CAAC,UAAU,GAAG,IAAI,oBAAU,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QACrD,KAAI,CAAC,aAAa,GAAG,IAAI,wBAAc,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC5D,KAAI,CAAC,UAAU,GAAG,IAAI,mBAAS,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QACpD,KAAI,CAAC,MAAM,GAAG,IAAI,yBAAe,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QACtD,KAAI,CAAC,UAAU,GAAG,IAAI,yBAAe,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;;IAC9D,CAAC;IAED,gCAAY,GAAZ;QACI,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,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,cAAI,UAAU,eAAY,EAAE;YACrE,cAAc,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc;SAC1C,CAAC,EACF,gBAAgB,CACnB,CAAC;IACN,CAAC;IAED,0BAAM,GAAN,UAAO,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;IA1EM,2BAAiB,GAAG,iCAAiC,CAAC;IACtD,2BAAiB,GAAG,iCAAiC,CAAC;IA0EjE,gBAAC;CAAA,AA5ED,CAAuC,kBAAQ,GA4E9C;kBA5EoB,SAAS"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coveo/platform-client",
|
|
3
|
-
"version": "35.
|
|
3
|
+
"version": "35.6.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/Entry.js",
|
|
6
6
|
"types": "dist/definitions/Entry.d.ts",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"@typescript-eslint/parser": "5.40.1",
|
|
32
32
|
"abortcontroller-polyfill": "1.7.5",
|
|
33
33
|
"cz-conventional-changelog": "3.3.0",
|
|
34
|
-
"eslint": "8.
|
|
34
|
+
"eslint": "8.26.0",
|
|
35
35
|
"eslint-config-prettier": "8.5.0",
|
|
36
36
|
"eslint-config-typescript": "3.0.0",
|
|
37
|
-
"eslint-plugin-jest": "27.1.
|
|
37
|
+
"eslint-plugin-jest": "27.1.3",
|
|
38
38
|
"eslint-plugin-prettier": "4.2.1",
|
|
39
39
|
"husky": "8.0.1",
|
|
40
40
|
"jest": "29.2.1",
|