Natzar Partner API Reference - v1.0.0
    Preparing search index...

    Function subtractBlocks

    • Remove blocks from intervals. A block splits an interval it lands in the middle of, which is exactly what "I'm out 11:00–11:30" should do to a 09:00–13:00 morning. Blocks apply to EVERY specialty.

      Parameters

      • intervals: readonly LocalInterval[]
      • blocks: readonly { start: number; end: number }[]

      Returns LocalInterval[]