budibase/packages/backend-core
melohagan 7dcdce2480
Gro 738 refactor code that returns the account holder from user (#14872)
* WIP

* WIP

* Remove tests

* Remove TenantInfo

* Remove unused export

* Remove TenantInfo type

* Remove unused export

* Remove unused routes

* Add getAccountHolder front-end endpoint

* Add endpoint to no tenancy list

* Get account holder via appId

* lint

* Update pro ref

* Use account email instead of budibaseUserId (#14876)

* Update account-portal ref

* Update account portal ref

* Correct import order

* Simplify boolean

* type fix

* Rename endpoint to accountholder

* Update account-portal ref

* Refactor

* Refactor to not use appId

* Update type

* appId not needed

* Unused import
2024-10-28 14:46:42 +00:00
..
__mocks__
scripts
src Gro 738 refactor code that returns the account holder from user (#14872) 2024-10-28 14:46:42 +00:00
tests Remove unused properties (#14732) 2024-10-08 12:56:48 +00:00
.gitignore
.npmignore
LICENSE
README.md
jest.config.ts
package.json Remove node-fetch mock from backend-core and replace with nock. 2024-08-07 15:26:04 +01:00
tsconfig.build.json
tsconfig.json

README.md

Budibase Core backend library

This library contains core functionality, like auth and security features which are shared between backend services.

Note about top level JS files

For the purposes of being able to do say require("@budibase/backend-core/permissions") we need to specify the exports at the top-level of the module.

For these files they should be limited to a single require of the file that should be exported and then a single module.exports = ... to export the file in commonJS.