-- | Does a raw search in Netsuite.
rawSearchNS
    :: (IsNsRestletConfig cfg, IsNsType t, IsNsSearchCol c)
    => cfg -- ^ Restlet configuration
    -> t -- ^ NetSuite entity type
    -> NsFilters -- ^ Search filters
    -> [c] -- ^ Columns to return
    -> IO (Either RestletError Value)
rawSearchNS cfg t fil col =
    doNS (toNsRestletConfig cfg) $
        NsActRawSearch (toNsType t) fil (map toNsSearchCol col)
rawSearchNS
    :: (IsNsRestletConfig cfg, IsNsType t, IsNsSearchCol c)
    => cfg -- ^ Restlet configuration
    -> t -- ^ NetSuite entity type
    -> NsFilters -- ^ Search filters
    -> [c] -- ^ Columns to return
    -> IO (Either RestletError Value)
rawSearchNS cfg t fil col =
    doNS (toNsRestletConfig cfg) $
        NsActRawSearch (toNsType t) fil (map toNsSearchCol col)
rawSearchNS cfg t fil col =
    doNS (toNsRestletConfig cfg) $
        NsActRawSearch (toNsType t) fil (map toNsSearchCol col)