Interface for segmentation logic. Provides a method to validate segmentation based on given parameters.

interface Segmentation {
    isSegmentationValid(dsl, properties, settings): boolean | Promise<any>;
}

Implemented by

Methods

  • Validates if the segmentation defined by the DSL is applicable given the properties and settings.

    Parameters

    • dsl: Record<string, dynamic>

      The domain-specific language defining segmentation rules.

    • properties: Record<string, dynamic>

      The properties of the entity to be segmented.

    • settings: SettingsModel

      The settings model containing configuration details.

    Returns boolean | Promise<any>

    • True if the segmentation is valid, otherwise false or a Promise resolving to any type.