Open marckraw opened 1 year ago
well, didn't realize that i've created duplicated of this https://github.com/storyblok/storyblok-js-client/issues/477 🤦🏻 documented others missing types, so I guess will not close it yet :P
Actually not a duplicate, but also about types, but this time the missing types for params not a result.
@marckraw Hello, sir. We have an open pull request ready to be QA'd that solves this issues. I'll keep you posted here. Thanks for the heads up.
Hey, in the end, this wasn't resolved. I had issues with that; the solution was to use .js instead of .ts. Are there any updates about it?
@javierdebug Not yet, sir. We'll close this issue when done. I'll keep you posted here.
Any news about getting correct types for the Management API Client?
@rasmusbe Yes, pull request is opened extending all these missing types. Keep you posted.
@rasmusbe Please, try out the latest version. I'll close this thread, but feel free to re open it if this wasn't solved.
I need to try it more next week when I'm back at work I tried it quickly and it seems like the put and post input parameters and response is still wrong.
And I dont seems to be able to reopen the issue
@rasmusbe That's weird. post and put they have ISbStoriesParams as their interface to params, which was extended with the missing types. Can you please share a test case when you have the time? Please do not share any sensitive data.
I'm sorry for the delay. i haven't had the time to do a test case but here's some stuff I found:
Hi @marckraw @rasmusbe @javierdebug I just found this issue while triaging and cleaning out issues
I would assume this is still relevant, so I will add it to my priorities.
Thanks a lot, everyone for your patience 🙏🏻
Expected Behavior
Documentation for management api and delivery api should be in sync with actual
storyblok-js-client
and its typescript types. If it's not, its hard to understand what is the current API.Current Behavior
https://www.storyblok.com/docs/api/management#core-resources/stories/retrieve-multiple-stories
Documentation said that i can use
with_slug
param, but it looks like types are not aware of that:Other params not existing in type:
It looks like, it is just type problem, becasue when I do it with
@ts-ignore
:than it returns filtered result.
Steps to Reproduce
Just create a repo with
storyblok-js-client@5.8.0
, use typescript, and try to make request withwith_slug
param.