UNPKG

@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.

22 lines 1.14 kB
"use strict"; 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 SmartSnippetsConfiguration extends Resource_js_1.default { static baseUrl = `/rest/organizations/${APICore_js_1.default.orgPlaceholder}/machinelearning/configuration/smartsnippets`; static contentFieldsUrl = `${SmartSnippetsConfiguration.baseUrl}/contentfields`; static documentTypesUrl = `${SmartSnippetsConfiguration.baseUrl}/documenttypes`; static previewUrl = `${SmartSnippetsConfiguration.baseUrl}/preview`; contentFields(params) { return this.api.post(SmartSnippetsConfiguration.contentFieldsUrl, params); } documentTypes(params) { return this.api.post(SmartSnippetsConfiguration.documentTypesUrl, params); } preview(params) { return this.api.post(SmartSnippetsConfiguration.previewUrl, params); } } exports.default = SmartSnippetsConfiguration; //# sourceMappingURL=SmartSnippetsConfiguration.js.map