MELCloud & MELCloud Home API for Node.js - v60.5.0
    Preparing search index...

    Function resolveErrorLogWindow

    • Resolves the page window an error-log query denotes without any wire call — the exact arithmetic the Classic API applies, published so a consumer paging without a Classic session can tile identical windows.

      Parameters

      • query: ErrorLogQuery

        The error-log query to resolve.

        Query window of an error-log page. from pins the window start (offset is then moot); otherwise pages stack backwards from to (defaulting to today) in period-day windows, offset counting the steps back.

        • Optional Readonlyfrom?: string

          Start date in ISO 8601 format. When set, the query is pinned to that window and offset is ignored; period only shapes the chained next-page bounds.

        • Optional Readonlyoffset?: number

          Page offset, in period-sized windows: 0 (default) is the most recent window, 1 the previous, etc. Pages are separated by a one-day boundary so consecutive pages never overlap.

        • Optional Readonlyperiod?: number

          Number of days per page. Defaults to 1.

        • Optional Readonlyto?: string

          End date in ISO 8601 format. Defaults to today in the caller's timezone.

      • OptionaltimeZone: string

        IANA timezone anchoring "today" when to is unset; the host's zone when omitted.

      Returns ErrorLogWindow

      The resolved window and its chained next-page bounds.

      Error with the Invalid DateTime prefix on an unparseable from or to.