-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
with_slug missing in types in Management API (also others params missing) #528
Comments
well, didn't realize that i've created duplicated of this #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. |
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
[email protected]
, use typescript, and try to make request withwith_slug
param.The text was updated successfully, but these errors were encountered: