Documentation
    Preparing search index...

    Module @svta/cml-content-steeringBeta

    A collection of tools for working with content steering.

    @svta/cml-content-steering

    Content steering functionality.

    npm i @svta/cml-content-steering
    
    import {
    isValidPathwayClone,
    isValidSteeringManifest,
    } from "@svta/cml-content-steering";

    const manifest = {
    VERSION: 1,
    TTL: 100,
    "PATHWAY-PRIORITY": ["pathway1", "pathway2"],
    "PATHWAY-CLONES": [
    {
    "BASE-ID": "pathway1",
    ID: "clone1",
    "URI-REPLACEMENT": {
    HOST: "example.com",
    PARAMS: {
    param1: "value1",
    param2: "value2",
    },
    },
    },
    ],
    };

    const pathwayClone = {
    "BASE-ID": "pathway1",
    ID: "clone1",
    "URI-REPLACEMENT": {
    HOST: "example.com",
    PARAMS: {
    param1: "value1",
    param2: "value2",
    },
    },
    };

    const isValidManifest = isValidSteeringManifest(manifest);
    const isValidClone = isValidPathwayClone(pathwayClone);

    Type Aliases

    PathwayClone
    SteeringManifest
    UriReplacement

    Variables

    DEFAULT_PATHWAY_PENALTY
    DEFAULT_TTL

    Functions

    isValidPathwayClone
    isValidSteeringManifest