You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good call @cdimitroulas, I agree that passing search query strings could be simpler.
Just for the record, we already have the carry function that passes stuff to the following endpoint call. Still not super smooth, but in case you didn't know about it, see https://github.com/timekit-io/js-sdk#usage-carry
A few comment regarding your solution:
We currently don't transpile ES6+ES7 (babel) so we'd have to make the implemenntation in ES5 for the time being. That means no template literals and const.
If we we're to pull in lodash, I'd prefer that we do some treeshaking using babel-plugin-lodash to make sure we don't include the whole lodash lib. Again, that depends on babel
If you want to give a PR a shot taking the above comments into considerations, I'd be happy to have a look at it :)
Hey @laander, yes I have seen the carry method after I wrote this issue 😅
However, it would still be worth having the string creation automatically so that user's of this lib don't have to do it. I can try to come up with an ES5, non-lodash version of my function which would work for this case when I find some time.
I think it would be really nice if using this SDK you did not have to write the
search
string yourself.Ideally the API of this library would allow you to do something like:
And this would be converted to a call to
/bookings?search=meta.some_property:someValue
automatically.A function like this should do the trick (quickly tested and tried in my own code using lodash/fp):
The text was updated successfully, but these errors were encountered: