import { Request } from 'express' ; import { IConfig } from 'config' ; class AbstractProductProxy { protected _request : Request ; protected _config : IConfig ; public api : Record < string , Record < string , Function > > ; protected constructor ( config , req ) { this . _config = config ; this . _request = req ; } public list ( skus ) { throw new Error ( 'ProductProxy::list must be implemented for specific platform' ) ; } public renderList ( skus , currencyCode , storeId = 1 ) { throw new Error ( 'ProductProxy::renderList must be implemented for specific platform' ) ; } } export default AbstractProductProxy ;