SizeRun
object type
A size run — a ratio over ONE option dimension (S-M-L-XL 1-2-2-1; a colour run 2 black: 1 white is equally real — any OptionGroup type may carry a run) a buyer fills a matrix with: kept once and reused on every Style that names it (Style.sizeRunId — its group must be in the scheme) or by the dimension itself (OptionGroup.defaultSizeRunId — the org default lives on the dimension); resolution = the style pick, then the group default, then none (the matrix axes carry the resolved id). optionGroupId is immutable at birth (a different dimension is a different run: doom + create — the PurchasePack unitsPerPack stance). entries = 1..256 { optionValueId, share } rows — distinct values of that group, every share an integer 0..10000, the shares summing to at least 1, stored in the caller order = the display order (a 0-share value rides the run but never receives a unit). sizeRunFill spreads a total over the ratio by the fill rule (largest remainder, ties to the earlier entry, the quantities summing to the total exactly). Doom is blocked while a non-doomed Style or OptionGroup names the run (CONFLICT/REFERENCED naming the holders); deactivate is free. Group-parented (parentId === rootId); sysId SZ-….
Fields
| Field | Type | Notes |
|---|---|---|
id | ID ID! | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
sysId | String String! | The human-readable id, shaped like SZ-… — stable for the record’s life. |
type | String String! | The kind of record — always SizeRun here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The record’s current state — one of active, inactive or doomed. |
parentId | ID ID! | The parent org group; for a SizeRun parentId === rootId. |
rootId | ID ID! | The id of your organization group — every record of yours carries the same one. |
createdAt | String String! | When the record was created, as a UTC timestamp. |
updatedAt | String String! | When the record last changed, as a UTC timestamp. |
revisionNum | Int Int! | How many times this record has been edited; the first save is 0. |
revision | ID ID! | The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten. |
refCaptions | RefCaption [RefCaption!]! | The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption. |
optionGroupId | ID ID! | The ONE dimension this run is over — set at creation, immutable thereafter (a different dimension is a different run: doom + create). |
entries | SizeRunEntry [SizeRunEntry!]! | The ratio — 1..256 distinct values of the run group with their shares (integers 0..10000, summing to at least 1), in the caller order = the display order. Editable wholesale (every value re-gated a member of the group + non-doomed). |
code | String | Optional mutable merchant reference code; uniqueness NOT enforced. |