Skip to main content
Version: 1.1.0

resolveChoiceColumnsInPayload

@spartanfx/react v1.1.0


@spartanfx/react / codeapps / resolveChoiceColumnsInPayload

Function: resolveChoiceColumnsInPayload()

function resolveChoiceColumnsInPayload(payload, resolvers): Promise<Record<string, unknown>>;

Apply choice-column resolution to a payload in-place using a map of field-name → resolver. Fields not present in the payload are skipped. The hash-suffix sweep is applied unconditionally before resolution so downstream consumers never see Status#Id etc.

Parameters

payload

Record<string, unknown>

resolvers

Record<string, ICAChoiceOptionResolver>

Returns

Promise<Record<string, unknown>>