How to convert promise to observable in rxjs

Note: Not complete yet..The woocommerce API npm is promise-based. To convert promise to observable I did