MemberOperations
Class Workspace member and invitation operations.
Properties
| Name | Type | Description |
|---|---|---|
send | Send | - |
Members
constructor
(send: Send) => MemberOperations
Parameters
| Name | Type | Description |
|---|---|---|
send | Send | - |
get
(userId: string) => Promise
Gets one member.
Parameters
| Name | Type | Description |
|---|---|---|
userId | string | - |
invite
(request: { email: string; role: "ADMIN" | "EDITOR" | "ACCOUNTANT" }) => Promise
Invites a user by email (role defaults to EDITOR).
Parameters
| Name | Type | Description |
|---|---|---|
request | { email: string; role: "ADMIN" | "EDITOR" | "ACCOUNTANT" } | - |
list
(filters?: { order: string; orderBy: string; role: string; status: string }) => Promise
Lists the members and pending invitations.
Parameters
| Name | Type | Description |
|---|---|---|
filters? | { order: string; orderBy: string; role: string; status: string } | - |
remove
(userId: string) => Promise
Removes a member or revokes a pending invitation.
Parameters
| Name | Type | Description |
|---|---|---|
userId | string | - |
updateRole
(userId: string, role: "ADMIN" | "EDITOR" | "ACCOUNTANT") => Promise
Changes a member's role.
Parameters
| Name | Type | Description |
|---|---|---|
userId | string | - |
role | "ADMIN" | "EDITOR" | "ACCOUNTANT" | - |
Source: carmen-cloud/index.ts:200