/**
 * Data Catalog API
 * Use the Data Catalog APIs to collect, organize, find, access, understand, enrich, and activate technical, business, and operational metadata.
For more information, see [Data Catalog](https://docs.oracle.com/iaas/data-catalog/home.htm).

 * OpenAPI spec version: 20190325
 *
 *
 * NOTE: This class is auto generated by OracleSDKGenerator.
 * Do not edit the class manually.
 *
 * Copyright (c) 2020, 2022, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */ import * as model from "../model" ; import common = require ( "oci-common" ) ; /**
 * Search Query object that allows complex search predicates that cannot be expressed through simple query params.
 *
 */ export interface SearchCriteria { /**
     * Search query dsl that defines the query components including fields and predicates.
     */ "query" ? : string ; /**
     * Query string that a dataObject is to be searched with. Used in the faceted query request
     */ "facetedQuery" ? : string ; /**
     * List of properties of dataObjects that needs to aggregated on for facets.
     */ "dimensions" ? : Array < string > ; /**
     * Array of objects having details about sort field and order.
     */ "sort" ? : Array < model . FacetedSearchSortRequest > ; "filters" ? : model . FacetedSearchFilterRequest ; } export namespace SearchCriteria { export function getJsonObj ( obj ) { const jsonObj = { ... obj , ... { "sort" : obj . sort ? obj . sort . map ( item => { return model . FacetedSearchSortRequest . getJsonObj ( item ) ; } ) : undefined , "filters" : obj . filters ? model . FacetedSearchFilterRequest . getJsonObj ( obj . filters ) : undefined } } ; return jsonObj ; } export function getDeserializedJsonObj ( obj ) { const jsonObj = { ... obj , ... { "sort" : obj . sort ? obj . sort . map ( item => { return model . FacetedSearchSortRequest . getDeserializedJsonObj ( item ) ; } ) : undefined , "filters" : obj . filters ? model . FacetedSearchFilterRequest . getDeserializedJsonObj ( obj . filters ) : undefined } } ; return jsonObj ; } }