construct calendar recurrence from api side