AlmondTill/G3N API

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

FieldTypeNotes
idID ID!The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it.
sysIdString String!The human-readable id, shaped like SZ-… — stable for the record’s life.
typeString String!The kind of record — always SizeRun here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of active, inactive or doomed.
parentIdID ID!The parent org group; for a SizeRun parentId === rootId.
rootIdID ID!The id of your organization group — every record of yours carries the same one.
createdAtString String!When the record was created, as a UTC timestamp.
updatedAtString String!When the record last changed, as a UTC timestamp.
revisionNumInt Int!How many times this record has been edited; the first save is 0.
revisionID 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.
refCaptionsRefCaption [RefCaption!]!The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption.
optionGroupIdID ID!The ONE dimension this run is over — set at creation, immutable thereafter (a different dimension is a different run: doom + create).
entriesSizeRunEntry [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).
codeStringOptional mutable merchant reference code; uniqueness NOT enforced.

Used by