refreshSentInvitations
Refreshes the list of sent invitations.
This method fetches the latest sent invitations from the server and updates the sentInvitations state flow with the new data. It ensures that the list of sent invitations remains up-to-date with the current state on Rainbow.
Behavior:
On successful execution, the sentInvitations property is automatically updated with the refreshed list.
This method is automatically called after the user authentication and whenever a sent invitation is modified.
If the operation fails, the returned RainbowResult contains error details explaining the issue.
Usage Notes:
Use this method when you need to manually trigger a refresh of sent invitations.
Return
A RainbowResult containing the refreshed list of Invitation objects on success. In case of failure, it contains error details.