This commit is contained in:
seb
2026-08-07 04:05:01 +02:00
parent 4833acd680
commit 1e89e19863
22 changed files with 1433 additions and 2 deletions

38
API.companyuser.md Normal file
View File

@@ -0,0 +1,38 @@
# companyuser
This document is auto-generated from the JSDoc comments in `src/store` by running `npm run api-doc`.
## `companyuser.add`
*Source: `src/store/companyuser/add.js`*
Adds a company user linking a company to a Google auth account.
```js
const fn = add(pool);
const id = await fn(1, 42);
// => 7
```
## `companyuser.delete`
*Source: `src/store/companyuser/delete.js`*
Deletes a company user link by its id.
```js
const fn = del(pool);
await fn(7);
```
## `companyuser.getByEmail`
*Source: `src/store/companyuser/getByEmail.js`*
Returns the company user ids associated with the given email address.
```js
const fn = getByEmail(pool);
const ids = await fn('user@example.com');
// => [1, 2, 3]
```