@coveo/platform-client
Version:
The main goal of this package is to provide an easy to configure and straightforward way of querying Coveo Cloud APIs using JavaScript.
19 lines • 947 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const APICore_js_1 = tslib_1.__importDefault(require("../../../APICore.js"));
const Resource_js_1 = tslib_1.__importDefault(require("../../Resource.js"));
class ModelAssociations extends Resource_js_1.default {
static baseUrl = `/rest/organizations/${APICore_js_1.default.orgPlaceholder}/machinelearning/configuration/querypipelines`;
/**
* Lists the organization associations corresponding to the specified pipelineId.
* @param pipelineId The unique identifier of the query pipeline.
* @param params The pagination parameters.
* @returns A list of associated models
*/
list(pipelineId, params) {
return this.api.get(this.buildPath(`${ModelAssociations.baseUrl}/${pipelineId}/associations`, params));
}
}
exports.default = ModelAssociations;
//# sourceMappingURL=ModelAssociations.js.map