Skip to content

package.held

Time and Attendance: sent to a tenant following a shared package when a published version needs something the tenant has not set up (an accrual category or a measure the version reads). The tenant stays on the version it has (from) and the package status says so (“held at 1.0.0: version 1.1.0 needs accrual category rtt”); no ledger changes. When the tenant sets up what is missing it moves on at once, and package.updated is sent then. In its own event log, delivered to the tenant’s and the install’s sinks; the envelope’s endpoint “attendance”, its package “houradvantage-attend” and its device the tenant’s id.

Schema id: urn:houradvantage:events:3:package.held

Fields

FieldTypeRequiredDescription
packagestringyesThe package’s name, as the tenant names it.
sharedbooleanyesTrue for a shared package the tenant adopted; false for the tenant’s own.
fromstring or nullyesThe version the tenant stays on: null when it has none in force.
tostringyesThe version the tenant waits for: it takes it when what it needs is set up.
revisionintegeryesThe revision activated; for an adoption, the revision of the version it takes. at least 1
tenantstringyesTime and Attendance: the tenant it is about.
missingarray of stringyesWhat the tenant lacks, as “accrual category rtt” or “measure km”.

Example

{
"tenant": "acme",
"package": "leave",
"shared": true,
"from": "1.0.0",
"to": "1.1.0",
"revision": 3,
"missing": [
"accrual category rtt"
]
}

JSON Schema

package.held.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:houradvantage:events:3:package.held",
"title": "package.held: data",
"description": "Time and Attendance: sent to a tenant following a shared package when a published version needs something the tenant has not set up (an accrual category or a measure the version reads). The tenant stays on the version it has (from) and the package status says so (\"held at 1.0.0: version 1.1.0 needs accrual category rtt\"); no ledger changes. When the tenant sets up what is missing it moves on at once, and package.updated is sent then. In its own event log, delivered to the tenant's and the install's sinks; the envelope's endpoint \"attendance\", its package \"houradvantage-attend\" and its device the tenant's id.",
"type": "object",
"properties": {
"package": {
"type": "string",
"description": "The package's name, as the tenant names it."
},
"shared": {
"type": "boolean",
"description": "True for a shared package the tenant adopted; false for the tenant's own."
},
"from": {
"type": [
"string",
"null"
],
"description": "The version the tenant stays on: null when it has none in force."
},
"to": {
"type": "string",
"description": "The version the tenant waits for: it takes it when what it needs is set up."
},
"revision": {
"type": "integer",
"minimum": 1,
"description": "The revision activated; for an adoption, the revision of the version it takes."
},
"tenant": {
"type": "string",
"description": "Time and Attendance: the tenant it is about."
},
"missing": {
"type": "array",
"items": {
"type": "string"
},
"description": "What the tenant lacks, as \"accrual category rtt\" or \"measure km\"."
}
},
"required": [
"package",
"shared",
"from",
"to",
"revision",
"tenant",
"missing"
],
"examples": [
{
"tenant": "acme",
"package": "leave",
"shared": true,
"from": "1.0.0",
"to": "1.1.0",
"revision": 3,
"missing": [
"accrual category rtt"
]
}
]
}