This PR ports the changes required for JS metrics across to the generator, unfortunately this required the re-introduction of a patch file 😞. This is because the metrics are context specific (some have storeId to send, some have user info to send) but the mustache templates are logic-less, so we can't say "add this if it's the check method".
[ ] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
[x] The correct base branch is being used, if not main
[ ] I have added tests to validate that the change in functionality is working as expected
Description
This PR ports the changes required for JS metrics across to the generator, unfortunately this required the re-introduction of a patch file 😞. This is because the metrics are context specific (some have storeId to send, some have user info to send) but the mustache templates are logic-less, so we can't say "add this if it's the check method".
To break the commits down:
References
https://github.com/openfga/js-sdk/pull/117
Review Checklist
main