Values for the score form
prepare_score_entryPrepares the values for the score form on the USTA NorCal league site, from the scores a member reports. Pass the team, the match and each line: its players on both sides, its set scores, and its status when a line was not completed. Give the sets from the member's own side, unless scoresFrom says otherwise. Pass posted too, with each line as NorCal shows it, so it can list every line where the two differ. The Desk never acts on the USTA site, so the member, or their own agent in their own session, presses Submit. Call it when someone wants to enter or check a match score on NorCal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The date the match was played, as 2026-10-11. The form takes the date played, even when the schedule shows another. | |
| team | Yes | The member's team: the Desk's team id, which is USTA NorCal's own team id, a link to its team page, or its name. | |
| asked | No | The person's question word for word, never paraphrased. Leave it out rather than invent one. | |
| lines | Yes | Each line as the member reports it. | |
| posted | No | Each line as NorCal shows it after the other team entered the score, to compare with the member's record. | |
| season | No | Season year. Defaults to the current season. | |
| matchId | No | USTA NorCal's own id for the match, read from the link on the team page. Optional: it fills in the form's path. | |
| opponent | No | The other team in the match, as the schedule names it. With date, or alone. | |
| weAreHome | No | Whether the member's team was the home team. Read from the schedule when left out. |