Commit 8cd073e
authored
feat: dynamically inferred core types (#995)
## Summary of change
This PR adds support for inferring the querier request body and response body types based on the path entered. It uses the core driver interface spec file to achieve this.
There is a script that generates the updated schema and can be run with the following command, whenever necessary (i.e. whenever the API spec is updated):
```sh
npm run build-core-types
```
## Related issues
## Test Plan
All tests should pass
## Documentation changes
(If relevant, please create a PR in our [docs repo](https://github.com/supertokens/docs), or create a checklist here highlighting the necessary changes)
## Checklist for important updates
- [x] Changelog has been updated
- [ ] `coreDriverInterfaceSupported.json` file has been updated (if needed)
- Along with the associated array in `lib/ts/version.ts`
- [ ] `frontendDriverInterfaceSupported.json` file has been updated (if needed)
- [x] Changes to the version if needed
- In `package.json`
- In `package-lock.json`
- In `lib/ts/version.ts`
- [x] Had run `npm run build-pretty`
- [x] Had installed and ran the pre-commit hook
- [ ] If new thirdparty provider is added,
- [ ] update switch statement in `recipe/thirdparty/providers/configUtils.ts` file, `createProvider` function.
- [ ] add an icon on the user management dashboard.
- [x] Issue this PR against the latest non released version branch.
- To know which one it is, run find the latest released tag (`git tag`) in the format `vX.Y.Z`, and then find the latest branch (`git branch --all`) whose `X.Y` is greater than the latest released tag.
- If no such branch exists, then create one from the latest released branch.
- [ ] If have added a new web framework, update the `add-ts-no-check.js` file to include that
- [ ] If added a new recipe / api interface, then make sure that the implementation of it uses NON arrow functions only (like `someFunc: function () {..}`).
- [ ] If added a new recipe, then make sure to expose it inside the recipe folder present in the root of this repo. We also need to expose its types.
- [ ] If added a new entry point, then make sure that it is importable by adding it to the `exports` in `package.json`1 parent 19e875d commit 8cd073e
File tree
157 files changed
+13425
-1389
lines changed- .github/workflows
- lib
- build
- core
- framework
- custom
- express
- fastify
- recipe
- accountlinking
- dashboard
- api
- multitenancy
- search
- emailpassword
- api
- emaildelivery/services/backwardCompatibility
- emailverification
- emaildelivery/services/backwardCompatibility
- jwt
- multifactorauth
- api
- multitenancy
- oauth2provider
- api
- openid
- passwordless
- api
- emaildelivery/services/backwardCompatibility
- session
- thirdparty
- providers
- totp
- usermetadata
- userroles
- webauthn
- api
- ts
- core
- versions/5.3
- recipe
- accountlinking
- dashboard
- api
- multitenancy
- search
- emailpassword
- api
- emailverification
- jwt
- multifactorauth
- multitenancy
- oauth2provider
- api
- openid
- passwordless
- api
- session
- thirdparty
- totp
- usermetadata
- userroles
- webauthn
- api
- scripts
- test
- emailpassword
- frontendIntegration
- session
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
157 files changed
+13425
-1389
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
| |||
69 | 77 | | |
70 | 78 | | |
71 | 79 | | |
72 | | - | |
73 | | - | |
| 80 | + | |
| 81 | + | |
74 | 82 | | |
75 | 83 | | |
76 | 84 | | |
77 | 85 | | |
78 | 86 | | |
79 | 87 | | |
80 | 88 | | |
| 89 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
17 | 27 | | |
18 | 28 | | |
19 | 29 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments