@neuralinnovations/dataisland-sdk - v0.0.1-dev54 / Exports / Workspaces
Organization's workspaces.
-
EventDispatcher
<WorkspacesEvent
,Workspace
>↳
Workspaces
• new Workspaces(): Workspaces
• get
collection(): readonly Workspace
[]
Workspaces.
readonly Workspace
[]
▸ contains(id
): boolean
Check if workspace exists.
Name | Type |
---|---|
id |
string |
boolean
▸ create(name
, description
, regulation?
): Promise
<undefined
| Workspace
>
Create workspace.
Name | Type |
---|---|
name |
string |
description |
string |
regulation? |
Object |
regulation.groupIds? |
string [] |
regulation.isCreateNewGroup |
boolean |
regulation.newGroupName? |
string |
Promise
<undefined
| Workspace
>
▸ delete(id
): Promise
<void
>
Delete workspace.
Name | Type |
---|---|
id |
string |
Promise
<void
>
▸ dispatch(input
): void
Name | Type |
---|---|
input |
Input <WorkspacesEvent , Workspace > |
void
▸ get(id
): Workspace
Get workspace by id.
Name | Type |
---|---|
id |
string |
▸ subscribe(callback
, type?
): Disposable
Name | Type |
---|---|
callback |
(event : Event <WorkspacesEvent , Workspace >) => void |
type? |
WorkspacesEvent |
▸ tryGet(id
): undefined
| Workspace
Try to get workspace by id.
Name | Type |
---|---|
id |
string |
undefined
| Workspace