Skip to content

Deal.advanced

Emitted each time a Deal is advanced.

Deal.advance emits Deal.advanced when it completes on a Deal.

PropertyValue
Emitted byDeal.advance
NounDeal
WakesNone.

Payload

Each delivery is an Event record. data holds what Deal.advance returns.

FieldTypeRequiredDescription
namestringrequiredDeal.advanced.
atdatetimerequiredWhen it happened.
seqintegerIts position in the namespace, one more than the Event before; any seq is a cursor into the history.
datajsonrequiredThe Thing as the Action left it.
data.dealDealrequiredThe Deal in its new stage.
data.deal.statusstringrequiredOne of Open, Qualified, Proposed, Won, or Lost.
data.deal.valuemoneyWhat the Deal is worth if won.
data.deal.ownerWorkerThe Worker who runs it.
data.deal.closesOndateThe date the buyer expects to decide.
data.deal.statusSincedatetimeWhen it entered its current status, computed from its Events.
data.deal.nextSteptextThe next dated step agreed with the buyer.

Example

JSON
{
  "$id": "https://api.sb/quietcopy.com/events/event_1",
  "$type": "Event",
  "name": "Deal.advanced",
  "at": "2026-10-22T12:00:00Z",
  "data": {
    "deal": {
      "$id": "https://api.sb/quietcopy.com/deals/deal_1",
      "$type": "Deal",
      "status": "Open",
      "value": {
        "amount": 39,
        "currency": "USD"
      },
      "owner": "worker_1",
      "closesOn": "2026-10-22",
      "statusSince": "2026-10-22T12:00:00Z",
      "nextStep": "Example next step"
    }
  },
  "seq": 1
}