/** * Typesense API * An open source search engine for building delightful search experiences. * * The version of the OpenAPI document: 30.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { CurationInclude } from './CurationInclude.js'; import type { CurationExclude } from './CurationExclude.js'; import type { CurationRule } from './CurationRule.js'; /** * * @export * @interface CurationItemCreateSchema */ export interface CurationItemCreateSchema { /** * * @type {CurationRule} * @memberof CurationItemCreateSchema */ rule: CurationRule; /** * List of document `id`s that should be included in the search results with their corresponding `position`s. * @type {Array} * @memberof CurationItemCreateSchema */ includes?: Array; /** * List of document `id`s that should be excluded from the search results. * @type {Array} * @memberof CurationItemCreateSchema */ excludes?: Array; /** * A filter by clause that is applied to any search query that matches the curation rule. * * @type {string} * @memberof CurationItemCreateSchema */ filterBy?: string; /** * Indicates whether search query tokens that exist in the curation's rule should be removed from the search query. * * @type {boolean} * @memberof CurationItemCreateSchema */ removeMatchedTokens?: boolean; /** * Return a custom JSON object in the Search API response, when this rule is triggered. This can can be used to display a pre-defined message (eg: a promotion banner) on the front-end when a particular rule is triggered. * * @type {object} * @memberof CurationItemCreateSchema */ metadata?: object; /** * A sort by clause that is applied to any search query that matches the curation rule. * * @type {string} * @memberof CurationItemCreateSchema */ sortBy?: string; /** * Replaces the current search query with this value, when the search query matches the curation rule. * * @type {string} * @memberof CurationItemCreateSchema */ replaceQuery?: string; /** * When set to true, the filter conditions of the query is applied to the curated records as well. Default: false. * * @type {boolean} * @memberof CurationItemCreateSchema */ filterCuratedHits?: boolean; /** * A Unix timestamp that indicates the date/time from which the curation will be active. You can use this to create rules that start applying from a future point in time. * * @type {number} * @memberof CurationItemCreateSchema */ effectiveFromTs?: number; /** * A Unix timestamp that indicates the date/time until which the curation will be active. You can use this to create rules that stop applying after a period of time. * * @type {number} * @memberof CurationItemCreateSchema */ effectiveToTs?: number; /** * When set to true, curation processing will stop at the first matching rule. When set to false curation processing will continue and multiple curation actions will be triggered in sequence. Curations are processed in the lexical sort order of their id field. * * @type {boolean} * @memberof CurationItemCreateSchema */ stopProcessing?: boolean; /** * ID of the curation item * @type {string} * @memberof CurationItemCreateSchema */ id?: string; } /** * Check if a given object implements the CurationItemCreateSchema interface. */ export declare function instanceOfCurationItemCreateSchema(value: object): value is CurationItemCreateSchema; export declare function CurationItemCreateSchemaFromJSON(json: any): CurationItemCreateSchema; export declare function CurationItemCreateSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): CurationItemCreateSchema; export declare function CurationItemCreateSchemaToJSON(json: any): CurationItemCreateSchema; export declare function CurationItemCreateSchemaToJSONTyped(value?: CurationItemCreateSchema | null, ignoreDiscriminator?: boolean): any;