variable timelapseFileSearch

Codec for <timelapseFileSearch>.

Examples

Open a search over one day

import { assertStringIncludes } from "@std/assert";
import { timelapseFileSearch } from "@hertzg/reolink-api/protocol/params";

const xml = timelapseFileSearch.encode({
  channelId: 0,
  id: "task-1",
  startTime: { year: 2026, month: 10, day: 9, hour: 0, minute: 0, second: 0 },
  endTime: { year: 2026, month: 10, day: 9, hour: 23, minute: 59, second: 59 },
  taskType: "mp4",
});

assertStringIncludes(xml, "<startTime><year>2026</year>");

Type

XmlParam<"timelapseFileSearch", TimelapseFileSearch>

Usage

import { timelapseFileSearch } from "protocol/params/mod.ts";