UNPKG

@vectorize-io/vectorize-client

Version:
75 lines (74 loc) 2.28 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Vectorize API (Beta) * API for Vectorize services * * The version of the OpenAPI document: 0.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.AdvancedQueryMatchTypeEnum = exports.AdvancedQueryModeEnum = void 0; exports.instanceOfAdvancedQuery = instanceOfAdvancedQuery; exports.AdvancedQueryFromJSON = AdvancedQueryFromJSON; exports.AdvancedQueryFromJSONTyped = AdvancedQueryFromJSONTyped; exports.AdvancedQueryToJSON = AdvancedQueryToJSON; exports.AdvancedQueryToJSONTyped = AdvancedQueryToJSONTyped; /** * @export */ exports.AdvancedQueryModeEnum = { Text: 'text', Vector: 'vector', Hybrid: 'hybrid' }; /** * @export */ exports.AdvancedQueryMatchTypeEnum = { Match: 'match', MatchPhrase: 'match_phrase', MultiMatch: 'multi_match' }; /** * Check if a given object implements the AdvancedQuery interface. */ function instanceOfAdvancedQuery(value) { return true; } function AdvancedQueryFromJSON(json) { return AdvancedQueryFromJSONTyped(json, false); } function AdvancedQueryFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'mode': json['mode'] == null ? undefined : json['mode'], 'textFields': json['text-fields'] == null ? undefined : json['text-fields'], 'matchType': json['match-type'] == null ? undefined : json['match-type'], 'textBoost': json['text-boost'] == null ? undefined : json['text-boost'], 'filters': json['filters'] == null ? undefined : json['filters'], }; } function AdvancedQueryToJSON(json) { return AdvancedQueryToJSONTyped(json, false); } function AdvancedQueryToJSONTyped(value, ignoreDiscriminator) { if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; } if (value == null) { return value; } return { 'mode': value['mode'], 'text-fields': value['textFields'], 'match-type': value['matchType'], 'text-boost': value['textBoost'], 'filters': value['filters'], }; }