def invitation_creation_input_data(another_user, community):
    """Full invitation data used as input to invitation service."""
    return {
        "type": "community-member-invitation",
        "receiver": {"user": another_user.id},
        "payload": {
            "role": "reader",
        },
        # Added by resource
        "topic": {'community': community.data['uuid']}
    }