/** * Synapse REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * JSON schema for a suggestion query. * @export * @interface SuggestionQuery */ export interface SuggestionQuery { /** * The free text search terms. The suggestion will be provided for these terms. * @type {Array} * @memberof SuggestionQuery */ searchTerm?: Array; /** * The maximum number of single-character edits (insertions, deletions, or substitutions) allowed between the input query and a suggested term. Must be 1 or 2. Default is 2. * @type {number} * @memberof SuggestionQuery */ maxEdit?: number; /** * The maximum number of suggestions to return for each term in the input text. The default is 5. * @type {number} * @memberof SuggestionQuery */ size?: number; /** * Specifies how suggestions should be sorted in the response. * @type {string} * @memberof SuggestionQuery */ sort?: SuggestionQuerySortEnum; } /** * @export */ export declare const SuggestionQuerySortEnum: { readonly SCORE: "SCORE"; readonly FREQUENCY: "FREQUENCY"; }; export type SuggestionQuerySortEnum = typeof SuggestionQuerySortEnum[keyof typeof SuggestionQuerySortEnum]; /** * Check if a given object implements the SuggestionQuery interface. */ export declare function instanceOfSuggestionQuery(value: object): value is SuggestionQuery; export declare function SuggestionQueryFromJSON(json: any): SuggestionQuery; export declare function SuggestionQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuggestionQuery; export declare function SuggestionQueryToJSON(json: any): SuggestionQuery; export declare function SuggestionQueryToJSONTyped(value?: SuggestionQuery | null, ignoreDiscriminator?: boolean): any;