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.

18 lines 896 B
import API from '../../../APICore.js'; import Resource from '../../Resource.js'; export default class SmartSnippetsConfiguration extends Resource { static baseUrl = `/rest/organizations/${API.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); } } //# sourceMappingURL=SmartSnippetsConfiguration.js.map