Invites Management

Pre-requisite: The user has to be signed in to perform the following operations.


Create Invite

To create an invite, you need to provide the following details:

  • spaceId (required): The id of the space.
  • request (required): The invite information.
Factory.spaceService.spaceShareSendInvitation(spaceId: String, request: SpaceShareUserInviteRequest) -> IVPublisher<Void>

Get Invites

To get the list of invites, the following method can be called.

Factory.spaceService.getSpaceInvitaions() -> IVPublisher<[SharedSpaceModel]>

Update Invite

To update the invite information, the following method can be called.

  • spaceId (required): The id of the space.
  • invitationId (required): The id of the invite.
  • request (required): The updated invite information.
Factory.spaceService.updateSpaceInvitaionResponse(invitationId: String, request: SpaceInvitaionRequest) -> IVPublisher<Void>

Cancel Invite

To cancel an invite, the following method can be called.

  • spaceId (required): The id of the space.
  • invitationId (required): The id of the invite.
Factory.spaceService.cancelSpaceShareInvitation(spaceId: String, invitationId: String) -> IVPublisher<Void>

Acknowledge Invite

To acknowledge an invite, the following method can be called.

  • invitationId (required): The id of the invite.
  • request (required): The acknowledge information.
Factory.spaceService.updateSpaceInvitaionResponse(invitationId: String, request: SpaceInvitaionRequest) -> IVPublisher<Void>