moltin / js-sdk

JavaScript & Node.js SDKs for the Elastic Path Commerce Cloud eCommerce API
http://documentation.elasticpath.com/
MIT License
173 stars 77 forks source link

Type issue with "hierarchies" / "hierarchy_id" and the GET /catalog response #635

Closed scernisevs closed 2 years ago

scernisevs commented 2 years ago

Type issue with "hierarchies" / "hierarchy_id" and the GET /catalog response

Types coming in from the SDK: image

Types coming in from GET https://api.moltin.com/catalog image

Steps to reproduce:

petro97 commented 2 years ago

Looks like we don't have a /catalog endpoint and types for this in SDK at all. Docs about this endpoint: Get the Catalog · Commerce Cloud Regarding the CatalogBase interface it's related to Get All Catalogs endpoint: Get all Catalogs · Commerce Cloud

github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 11.23.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

petro97 commented 2 years ago

It's fixed. I added Get /catalog endpoint. To call this endpoint you should query like:this.SDK.Catalog.Catalog.Get(). Response types you can find in the catalog.d.ts file, CatalogReleaseBase interface.