@oneblink/sdk
    Preparing search index...

    Type Alias ConditionalPredicateDateValue

    ConditionalPredicateDateValue:
        | { compareWith: "VALUE"; daysOffset?: number; value: string }
        | { compareWith: "ELEMENT"; daysOffset?: number; elementId: string }

    A date used when evaluating a datetime condition. Either a custom ISO date or a date/datetime element, with an optional day offset.

    Type Declaration

    • { compareWith: "VALUE"; daysOffset?: number; value: string }
      • compareWith: "VALUE"
      • OptionaldaysOffset?: number

        The number of days to offset the comparison date

      • value: string

        An ISO date string to compare against the datetime

    • { compareWith: "ELEMENT"; daysOffset?: number; elementId: string }
      • compareWith: "ELEMENT"
      • OptionaldaysOffset?: number

        The number of days to offset the comparison date

      • elementId: string

        The id of a date or datetime element to compare against the submission datetime

    // Custom date with a +30 day offset
    { compareWith: 'VALUE', value: '2026-07-01', daysOffset: 30 }
    // Date element with a -14 day offset
    { compareWith: 'ELEMENT', elementId: '<date-element-id>', daysOffset: -14 }