import { itemToSearchResult } from "../portalSearchItems";
export async function ogcItemToSearchResult(ogcItem, includes, requestOptions) {
    // OGC Api stuffs the item wholesale in `.properties`
    // NOTE: the properties hash may also have some extraneous members such
    // as `license` and `source` if the OgcItem came from the index.
    const pseudoItem = ogcItem.properties;
    const result = await itemToSearchResult(pseudoItem, includes, requestOptions);
    // Expose extraneous members like `license` and `source`
    result.source = ogcItem.properties.source;
    result.license = ogcItem.properties.license;
    return result;
}
//# sourceMappingURL=ogcItemToSearchResult.js.map