{
"id": "im.flushing.fundraiser",
"defs": {
"main": {
"key": "literal:self",
"type": "record",
"record": {
"type": "object",
"required": [
"raisedUsd",
"goalUsd",
"updatedAt"
],
"properties": {
"source": {
"type": "string",
"format": "uri",
"description": "The fundraiser page the figures were read from, so anybody can check them against it."
},
"goalUsd": {
"type": "integer",
"minimum": 1,
"description": "Whole US dollars the fundraiser is aiming at."
},
"raisedUsd": {
"type": "integer",
"minimum": 0,
"description": "Whole US dollars raised so far, as shown on the fundraiser page. Whole dollars because that is the only precision the site displays."
},
"updatedAt": {
"type": "string",
"format": "datetime",
"description": "When these figures were read off the fundraiser page. Shown beside the total, because a transcribed number with no date on it reads as live."
},
"pastGoalsUsd": {
"type": "array",
"items": {
"type": "integer",
"minimum": 1
},
"maxLength": 20,
"description": "Every goal this fundraiser has previously declared, in whole US dollars. The fundraiser platform reports only the goal in force today, so raising the goal would otherwise erase the one that was met; this is the record of them, and the progress bar marks each one that falls below the current goal."
}
}
},
"description": "The running total of the charity fundraiser Flushes hosts. Written by the account that runs the site and read by everybody; Flushes handles no money, so this record is a transcription of a total held elsewhere, not a ledger."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}