One active substatus of a job, e.g. on hold.customer-prework.awaiting.
The wrapper object is not decoration: the value comes straight out of
SELECT DISTINCT UNNEST(job_state.statuses) AS statuses, so every row
arrives keyed by the column alias. That shape has been on the wire since
v1.2.0 — DKV B2C's StatusReason field is the JSON of this array — so it
stays as it is. Flatten with flattenSubstatuses() where a plain list of
strings is wanted.
One active substatus of a job, e.g.
on hold.customer-prework.awaiting.The wrapper object is not decoration: the value comes straight out of
SELECT DISTINCT UNNEST(job_state.statuses) AS statuses, so every row arrives keyed by the column alias. That shape has been on the wire since v1.2.0 — DKV B2C'sStatusReasonfield is the JSON of this array — so it stays as it is. Flatten withflattenSubstatuses()where a plain list of strings is wanted.