The list of all groups.
GPT Context: This function returns an array of all groups stored in the groupsByID
object, allowing for easy access to the complete list of groups.
Adds a new group to the store and makes it observable.
This method takes a group, makes it observable, and adds it to the store.
The group to add.
The observable group that was added.
Dynamically adds an observable property to the store.
The name of the property to add.
The initial value of the property.
GPT Context: This function allows adding a new observable property to the store dynamically, along with its getter and setter.
Resets the store to its initial state.
GPT Context: This function clears all data from the store, useful for resetting the store during user logout or debugging.
Deletes groups by their IDs.
The IDs of the group to delete.
GPT Context: This function removes multiple group from the store based on their IDs, useful for batch deletions.
Expands the details of groups based on the provided group IDs.
An array of group IDs to be expanded.
The list of groups corresponding to the provided IDs.
GPT Context: This action method takes an array of group IDs and retrieves the corresponding group details from the groupsByID
collection, returning a list of groups. If a group ID doesn't exist, it returns an empty object in its place.
Fetches the next set of groups from the cloud.
This method fetches the next set of groups from the cloud using the #fetchNextRef
function,
which is set when the group list is synchronized.
A promise that resolves when the next set of groups has been fetched.
Fetches the next set of issued sharing requests from the cloud.
This method fetches the next set of issued sharing requests from the cloud using the #fetchNextIssuedSharingRequestRef
function,
which is set when the issued sharing request list is synchronized.
A promise that resolves when the next set of issued sharing requests has been fetched.
Fetches the next set of received sharing requests from the cloud.
This method fetches the next set of received sharing requests from the cloud using the #fetchNextReceivedSharingRequestRef
function,
which is set when the received sharing request list is synchronized.
A promise that resolves when the next set of received sharing requests has been fetched.
Processes the response from the cloud to get groups.
This function processes the response from the cloud, makes the groups observable, and updates the store with the latest data. It also handles pagination by setting the fetchNext reference and hasNext flag.
The response from the cloud containing groups.
An object containing the observable groups, fetchNext function, and hasNext flag.
Processes the issued sharing request response from the cloud.
This function processes the issued sharing request response from the cloud, makes the requests observable, and updates the store with the latest data. It also handles pagination by setting the fetchNext reference and hasNext flag.
The response from the cloud containing issued sharing requests.
An object containing the observable received sharing requests, fetchNext function, and hasNext flag.
Processes the received sharing request response from the cloud.
This function processes the received sharing request response from the cloud, makes the requests observable, and updates the store with the latest data. It also handles pagination by setting the fetchNext reference and hasNext flag.
The response from the cloud containing received sharing requests.
An object containing the observable received sharing requests, fetchNext function, and hasNext flag.
Sets the list of groups in the store.
This method takes an array of groups, makes each group observable, and updates the store with the new list of groups.
The list of groups to set.
Sets the node list with pre- and post-processing hooks.
The list of group to set.
GPT Context: This function allows developers to inject custom logic before and after setting the node list.
Synchronizes the group list from the cloud by fetching all groups with pagination.
This method calls the API to get the list of groups, including their nodes and sub-groups, and continues to fetch the next set of groups until there are no more groups to fetch. The fetched groups are then set in the store.
A promise that resolves when the group list has been synchronized.
Updates multiple group properties.
An array of partial updates for the group.
GPT Context: This function allows bulk updates to multiple group, merging the provided updates with the existing node data.
Retrieves the list of all groups.