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
Kindrecord
Record keyany
Authoritystuff.pimstash.com
Commit rev3mzxzials3x2e
Indexed

Record

record · key any

Properties

createdAt

requiredstring · datetime

occurredAt

requiredstring · datetime

thing

requiredstring · record-key

The record key of the com.pimstash.stuff.thing, in this same Space, this Event is about.

#added

object

The Thing came to exist.

Properties

fromThing

string · record-key

The record key of the com.pimstash.stuff.thing, in this same Space, this one was copied or split from, while it exists.

source

requiredstring
  • maxLength: 64
  • knownValues: form | mcp | import | duplicate | split

#amount

object

The Thing's amount changed.

Properties

new

requiredstring

The amount after, as a decimal string ("2.375") so it round-trips exactly.

  • maxLength: 64

old

requiredstring

The amount before, as a decimal string ("2.375") so it round-trips exactly.

  • maxLength: 64

#inspected

object

The Thing was inspected.

Properties

note

string
  • maxLength: 10000
  • maxGraphemes: 1000

pct

requiredinteger
  • minimum: 0
  • maximum: 100
  • minimum: 0
  • maximum: 100

#kindRef

object

A Kind as it was named when the Event happened. kind is absent once that Kind is gone.

Properties

kind

string · record-key

The record key of the com.pimstash.stuff.kind, in this same Space, named here.

name

requiredstring
  • maxLength: 1000
  • maxGraphemes: 100

#lent

object

The Thing went out on Loan.

Properties

borrower

requiredstring
  • minLength: 1
  • maxLength: 1000
  • maxGraphemes: 100

dueOn

string · datetime

The calendar date the Loan is due back, as a datetime at UTC midnight read in UTC.

note

string
  • maxLength: 10000
  • maxGraphemes: 1000

#locationRef

object

A Location as it was named when the Event happened. location is absent once that Location is gone.

Properties

location

string · record-key

The record key of the com.pimstash.stuff.location, in this same Space, named here.

name

requiredstring
  • maxLength: 1000
  • maxGraphemes: 100

#moved

object

The Thing moved between Locations; an absent end is no Location.

Properties

cause

string
  • maxLength: 64
  • knownValues: location_deleted

from

ref
Reference

to

ref
Reference

#reinstated

object

The Thing went back into service.

Properties

previousReason

requiredstring
  • maxLength: 64
  • knownValues: sold | donated | discarded | lost | used_up | other

#retired

object

The Thing left service.

Properties

borrower

string

Who had it, when a lent Thing was retired; its Loan ends without a returned Event.

  • maxLength: 1000
  • maxGraphemes: 100

currency

string

ISO 4217 code.

  • minLength: 3
  • maxLength: 3

note

string
  • maxLength: 10000
  • maxGraphemes: 1000

reason

requiredstring
  • maxLength: 64
  • knownValues: sold | donated | discarded | lost | used_up | other

For sold: what it sold for, in the currency's minor unit (cents, pence, whole yen).

  • minimum: 0

#returned

object

The Thing came back from Loan.

Properties

borrower

requiredstring
  • maxLength: 1000
  • maxGraphemes: 100

note

string
  • maxLength: 10000
  • maxGraphemes: 1000

#serviced

object

Service was logged.

Properties

note

requiredstring

Markdown.

  • maxLength: 10000
  • maxGraphemes: 1000

#split

object

The Thing was split into individually tracked Things of one Kind.

Properties

into

requiredinteger
  • minimum: 2

kind

requiredref
Reference

#used

object

Usage was logged, or the counter corrected.

Properties

correction

boolean

A direct correction of the counter; only a correction may go down.

delta

requiredstring

The change in usage; positive unless a correction, as a decimal string ("2.375") so it round-trips exactly.

  • maxLength: 64

total

requiredstring

Usage after, as a decimal string ("2.375") so it round-trips exactly.

  • maxLength: 64

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • A Thing in a Stuff Trove. A shared field (name, category, make, model, measure, lifespanMonths, usageUnit, ratedUsage, photo) is absent, never null, to inherit the Kind's.