/** * 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. */ /** * * @export * @interface CurationRule */ export interface CurationRule { /** * List of tag values to associate with this curation rule. * @type {Array} * @memberof CurationRule */ tags?: Array; /** * Indicates what search queries should be curated * @type {string} * @memberof CurationRule */ query?: string; /** * Indicates whether the match on the query term should be `exact` or `contains`. If we want to match all queries that contained the word `apple`, we will use the `contains` match instead. * * @type {string} * @memberof CurationRule */ match?: CurationRuleMatchEnum; /** * Indicates that the curation should apply when the filter_by parameter in a search query exactly matches the string specified here (including backticks, spaces, brackets, etc). * * @type {string} * @memberof CurationRule */ filterBy?: string; } /** * @export */ export declare const CurationRuleMatchEnum: { readonly Exact: "exact"; readonly Contains: "contains"; }; export type CurationRuleMatchEnum = typeof CurationRuleMatchEnum[keyof typeof CurationRuleMatchEnum]; /** * Check if a given object implements the CurationRule interface. */ export declare function instanceOfCurationRule(value: object): value is CurationRule; export declare function CurationRuleFromJSON(json: any): CurationRule; export declare function CurationRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): CurationRule; export declare function CurationRuleToJSON(json: any): CurationRule; export declare function CurationRuleToJSONTyped(value?: CurationRule | null, ignoreDiscriminator?: boolean): any;