@neuralinnovations/dataisland-sdk - v0.0.1-dev54 / Exports / Organization
Organization.
-
EventDispatcher
<OrganizationEvent
,Organization
>↳
Organization
- change
- createInviteCode
- dispatch
- inviteUsers
- limitSegments
- members
- membersStatistics
- organizationLimits
- statistics
- subscribe
- userLimits
- userStatistic
• new Organization(): Organization
• get
accessGroups(): Groups
Groups.
• get
chats(): Chats
Chats.
• get
description(): string
Organization description.
string
• get
id(): string
Organization id.
string
• get
name(): string
Organization name.
string
• get
workspaces(): Workspaces
Workspaces.
▸ change(name
, description
): Promise
<void
>
Change organization name and description.
Name | Type |
---|---|
name |
string |
description |
string |
Promise
<void
>
▸ createInviteCode(accessGroups
): Promise
<string
>
Create invite code for users outside organization
Name | Type |
---|---|
accessGroups |
string [] |
Promise
<string
>
▸ dispatch(input
): void
Name | Type |
---|---|
input |
Input <CHANGED , Organization > |
void
▸ inviteUsers(emails
, accessGroups
): Promise
<void
>
Invite users with given emails to organization
Name | Type |
---|---|
emails |
string [] |
accessGroups |
string [] |
Promise
<void
>
▸ limitSegments(): Promise
<SegmentData
[]>
Get all available segments data
Promise
<SegmentData
[]>
▸ members(): Promise
<UserDto
[]>
Get organization members
Promise
<UserDto
[]>
▸ membersStatistics(dateFrom
, dateTo
): Promise
<UsersStatisticsResponse
>
Get organization statistics
Name | Type |
---|---|
dateFrom |
number |
dateTo |
number |
Promise
<UsersStatisticsResponse
>
▸ organizationLimits(): Promise
<SegmentData
>
Get default organization limits
Promise
<SegmentData
>
▸ statistics(dateFrom
, dateTo
): Promise
<StatisticsResponse
>
Get organization statistics
Name | Type |
---|---|
dateFrom |
number |
dateTo |
number |
Promise
<StatisticsResponse
>
▸ subscribe(callback
, type?
): Disposable
Name | Type |
---|---|
callback |
(event : Event <CHANGED , Organization >) => void |
type? |
CHANGED |
▸ userLimits(): Promise
<CurrentLimitsData
>
Get user limits data
Promise
<CurrentLimitsData
>
▸ userStatistic(userid
, dateFrom
, dateTo
): Promise
<StatisticsResponse
>
Get statistics for user
Name | Type |
---|---|
userid |
string |
dateFrom |
number |
dateTo |
number |
Promise
<StatisticsResponse
>