Files
dashlibstorage/API.companyuser.md
2026-08-07 05:21:56 +02:00

36 lines
711 B
Markdown

# 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 id = await store.companyuser.add(1, 42);
// => 7
```
## `companyuser.delete`
*Source: `src/store/companyuser/delete.js`*
Deletes a company user link by its id.
```js
await store.companyuser.delete(7);
```
## `companyuser.getByEmail`
*Source: `src/store/companyuser/getByEmail.js`*
Returns the company user ids associated with the given email address.
```js
const ids = await store.companyuser.getByEmail('user@example.com');
// => [1, 2, 3]
```