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
| Field | Type | Required | Description |
|---|---|---|---|
package | string | yes | The package’s name, as the tenant names it. |
shared | boolean | yes | True for a shared package the tenant adopted; false for the tenant’s own. |
from | string or null | yes | The version the tenant stays on: null when it has none in force. |
to | string | yes | The version the tenant waits for: it takes it when what it needs is set up. |
revision | integer | yes | The revision activated; for an adoption, the revision of the version it takes. at least 1 |
tenant | string | yes | Time and Attendance: the tenant it is about. |
missing | array of string | yes | What 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" ] } ]}