com.pimstash.stuff.event
An Event in a Stuff Thing's History. Its kind is its payload's type; a payload type this client does not know is kept and listed as an unknown Event. The author is the repository the record sits in, so there is no actor field.
Details · record, key any
| Kind | record |
|---|---|
| Record key | any |
| Authority | stuff.pimstash.com |
| Commit rev | 3mzxzials3x2e |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"added": {
"description": "The Thing came to exist.",
"properties": {
"fromThing": {
"description": "The record key of the com.pimstash.stuff.thing, in this same Space, this one was copied or split from, while it exists.",
"format": "record-key",
"type": "string"
},
"source": {
"knownValues": [
"form",
"mcp",
"import",
"duplicate",
"split"
],
"maxLength": 64,
"type": "string"
}
},
"required": [
"source"
],
"type": "object"
},
"amount": {
"description": "The Thing's amount changed.",
"properties": {
"new": {
"description": "The amount after, as a decimal string (\"2.375\") so it round-trips exactly.",
"maxLength": 64,
"type": "string"
},
"old": {
"description": "The amount before, as a decimal string (\"2.375\") so it round-trips exactly.",
"maxLength": 64,
"type": "string"
}
},
"required": [
"old",
"new"
],
"type": "object"
},
"inspected": {
"description": "The Thing was inspected.",
"properties": {
"note": {
"maxGraphemes": 1000,
"maxLength": 10000,
"type": "string"
},
"pct": {
"maximum": 100,
"minimum": 0,
"type": "integer"
},
"previousPct": {
"maximum": 100,
"minimum": 0,
"type": "integer"
}
},
"required": [
"pct"
],
"type": "object"
},
"kindRef": {
"description": "A Kind as it was named when the Event happened. kind is absent once that Kind is gone.",
"properties": {
"kind": {
"description": "The record key of the com.pimstash.stuff.kind, in this same Space, named here.",
"format": "record-key",
"type": "string"
},
"name": {
"maxGraphemes": 100,
"maxLength": 1000,
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"lent": {
"description": "The Thing went out on Loan.",
"properties": {
"borrower": {
"maxGraphemes": 100,
"maxLength": 1000,
"minLength": 1,
"type": "string"
},
"dueOn": {
"description": "The calendar date the Loan is due back, as a datetime at UTC midnight read in UTC.",
"format": "datetime",
"type": "string"
},
"note": {
"maxGraphemes": 1000,
"maxLength": 10000,
"type": "string"
}
},
"required": [
"borrower"
],
"type": "object"
},
"locationRef": {
"description": "A Location as it was named when the Event happened. location is absent once that Location is gone.",
"properties": {
"location": {
"description": "The record key of the com.pimstash.stuff.location, in this same Space, named here.",
"format": "record-key",
"type": "string"
},
"name": {
"maxGraphemes": 100,
"maxLength": 1000,
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"main": {
"description": "An Event in a Stuff Thing's History. Its kind is its payload's type; a payload type this client does not know is kept and listed as an unknown Event. The author is the repository the record sits in, so there is no actor field.",
"key": "any",
"record": {
"properties": {
"createdAt": {
"format": "datetime",
"type": "string"
},
"occurredAt": {
"format": "datetime",
"type": "string"
},
"payload": {
"refs": [
"#added",
"#moved",
"#amount",
"#lent",
"#returned",
"#serviced",
"#retired",
"#reinstated",
"#split",
"#inspected",
"#used"
],
"type": "union"
},
"thing": {
"description": "The record key of the com.pimstash.stuff.thing, in this same Space, this Event is about.",
"format": "record-key",
"type": "string"
}
},
"required": [
"thing",
"occurredAt",
"payload",
"createdAt"
],
"type": "object"
},
"type": "record"
},
"moved": {
"description": "The Thing moved between Locations; an absent end is no Location.",
"properties": {
"cause": {
"knownValues": [
"location_deleted"
],
"maxLength": 64,
"type": "string"
},
"from": {
"ref": "#locationRef",
"type": "ref"
},
"to": {
"ref": "#locationRef",
"type": "ref"
}
},
"required": [],
"type": "object"
},
"reinstated": {
"description": "The Thing went back into service.",
"properties": {
"previousReason": {
"knownValues": [
"sold",
"donated",
"discarded",
"lost",
"used_up",
"other"
],
"maxLength": 64,
"type": "string"
}
},
"required": [
"previousReason"
],
"type": "object"
},
"retired": {
"description": "The Thing left service.",
"properties": {
"borrower": {
"description": "Who had it, when a lent Thing was retired; its Loan ends without a returned Event.",
"maxGraphemes": 100,
"maxLength": 1000,
"type": "string"
},
"currency": {
"description": "ISO 4217 code.",
"maxLength": 3,
"minLength": 3,
"type": "string"
},
"note": {
"maxGraphemes": 1000,
"maxLength": 10000,
"type": "string"
},
"reason": {
"knownValues": [
"sold",
"donated",
"discarded",
"lost",
"used_up",
"other"
],
"maxLength": 64,
"type": "string"
},
"salePriceMinor": {
"description": "For sold: what it sold for, in the currency's minor unit (cents, pence, whole yen).",
"minimum": 0,
"type": "integer"
}
},
"required": [
"reason"
],
"type": "object"
},
"returned": {
"description": "The Thing came back from Loan.",
"properties": {
"borrower": {
"maxGraphemes": 100,
"maxLength": 1000,
"type": "string"
},
"note": {
"maxGraphemes": 1000,
"maxLength": 10000,
"type": "string"
}
},
"required": [
"borrower"
],
"type": "object"
},
"serviced": {
"description": "Service was logged.",
"properties": {
"note": {
"description": "Markdown.",
"maxGraphemes": 1000,
"maxLength": 10000,
"type": "string"
}
},
"required": [
"note"
],
"type": "object"
},
"split": {
"description": "The Thing was split into individually tracked Things of one Kind.",
"properties": {
"into": {
"minimum": 2,
"type": "integer"
},
"kind": {
"ref": "#kindRef",
"type": "ref"
}
},
"required": [
"kind",
"into"
],
"type": "object"
},
"used": {
"description": "Usage was logged, or the counter corrected.",
"properties": {
"correction": {
"description": "A direct correction of the counter; only a correction may go down.",
"type": "boolean"
},
"delta": {
"description": "The change in usage; positive unless a correction, as a decimal string (\"2.375\") so it round-trips exactly.",
"maxLength": 64,
"type": "string"
},
"total": {
"description": "Usage after, as a decimal string (\"2.375\") so it round-trips exactly.",
"maxLength": 64,
"type": "string"
}
},
"required": [
"delta",
"total"
],
"type": "object"
}
},
"id": "com.pimstash.stuff.event",
"lexicon": 1
}