-- | Does an object search in Netsuite.
searchNS
    :: (IsNsRestletConfig cfg, IsNsType t)
    => cfg -- ^ Restlet configuration
    -> t -- ^ NetSuite entity type
    -> NsFilters -- ^ Search filters
    -> IO (Either RestletError Value)
searchNS cfg t fil =
    doChunkableNS (toNsRestletConfig cfg) $
        NsActSearch (toNsType t)
                    fil
                    (typeFields (toNsRestletConfig cfg) $ toNsType t)
searchNS
    :: (IsNsRestletConfig cfg, IsNsType t)
    => cfg -- ^ Restlet configuration
    -> t -- ^ NetSuite entity type
    -> NsFilters -- ^ Search filters
    -> IO (Either RestletError Value)
searchNS cfg t fil =
    doChunkableNS (toNsRestletConfig cfg) $
        NsActSearch (toNsType t)
                    fil
                    (typeFields (toNsRestletConfig cfg) $ toNsType t)
searchNS cfg t fil =
    doChunkableNS (toNsRestletConfig cfg) $
        NsActSearch (toNsType t)
                    fil
                    (typeFields (toNsRestletConfig cfg) $ toNsType t)