EU Parliament Monitor — API Documentation - v0.9.24
    Preparing search index...

    Function resolveCodelistCodes

    • Internal

      Resolve the actual list of codes for a single dimension.

      Parameters

      • dim: SDMXDimension

        SDMX dimension descriptor.

      • payload: {
            dataStructures?: {
                id?: string;
                dataStructureComponents?: {
                    dimensionList?: { dimensions?: SDMXDimension[] };
                };
            }[];
            conceptSchemes?: SDMXConceptScheme[];
            codelists?: {
                id?: string;
                agencyID?: string;
                codes?: SDMXDimensionValue[];
            }[];
        }

        The data section of the SDMX data-structure response.

      Returns readonly { id: string; name?: string | Record<string, string> }[]

      Array of code objects with id and optional name.