Design kit command

board.voteResults

Voting results

Answers the voting session's state, your votes and, once ended, the ranked results.

Kit
Design 0.1.0 (.kdesign)
Changes the document
no

Parameters

Parameters of board.voteResults
NameTypeRequiredDescription
idinteger | stringnoread by the command beside its listed parameters
voterstringno

Call through design_run

text
design_run {
  "path": "<file>.kdesign",
  "steps": [{ "command": "board.voteResults" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: id, voter. design_run answers the step’s result in completed[i].result.

Result

Result of board.voteResults
NameTypeRequiredDescription
byanyno
leftanyno
mineanyno
onanyno
resultsanyno
stateanyno
votersanyno
votesPerPersonanyno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "by": {},
    "left": {},
    "mine": {},
    "on": {},
    "results": {},
    "state": {},
    "voters": {},
    "votesPerPerson": {}
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "id": {
      "description": "read by the command beside its listed parameters",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ]
    },
    "voter": {
      "type": "string"
    }
  },
  "returns": "{state: off|running|ended, votesPerPerson, on, by, left (your votes left), mine [{id, votes}], voters, results? [{id, name, votes, rank}] (once ended, most votes first)}",
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (design_commands through @kition/[email protected], built from KitionAI/kition-design@abc7e16). As data: commands.jsonl.