Review.published
Emitted each time a Review is published.
Review.publish emits Review.published when it completes on a Review.
| Property | Value |
|---|---|
| Emitted by | Review.publish |
| Noun | Review |
| Moves | Review submitted to published; Review withheld to published |
| Wakes | None. |
Payload
Each delivery is an Event record. data holds what Review.publish returns, and previous holds the state it left.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | required | Review.published. |
at | datetime | required | When it happened. |
seq | integer | Its position in the namespace, one more than the Event before; any seq is a cursor into the history. | |
data | json | required | The Thing as the Action left it. |
data.review | Review | required | The Review, now published. |
data.review.rating | integer | required | The score, from 1 to 5. |
data.review.body | text | The reviewer’s words. | |
data.review.venue | string | The venue it was posted on, by id; empty for the Startup’s own Site. | |
data.review.displayConsent | boolean | True once the reviewer agreed it may be shown on the Startup’s own Pages. | |
data.review.status | string | required | Where it stands; a removed Review is kept, never deleted. |
data.review.customer | Customer | The Customer who wrote it, when known. | |
data.previous.status | string | required | The status before this Event: submitted. |
Example
{
"$id": "https: //api.sb/ kilnbakery.com/ events/ event_1",
"$type": "Event",
"name": "Review.published",
"at": "2026-10-22T12: 00: 00Z",
"data": {
"review": {
"$id": "https: //api.sb/ kilnbakery.com/ reviews/ review_1",
"$type": "Review",
"rating": 1,
"body": "Example body",
"venue": "Example venue",
"displayConsent": true,
"status": "published",
"customer": "customer_1"
},
"previous": {
"status": "submitted"
}
},
"seq": 1
}