"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var ScheduleEntryLockCC_validateArgs_exports = {};
__export(ScheduleEntryLockCC_validateArgs_exports, {
  validateArgs_ScheduleEntryLockCCAPI_getDailyRepeatingSchedule: () => validateArgs_ScheduleEntryLockCCAPI_getDailyRepeatingSchedule,
  validateArgs_ScheduleEntryLockCCAPI_getWeekDaySchedule: () => validateArgs_ScheduleEntryLockCCAPI_getWeekDaySchedule,
  validateArgs_ScheduleEntryLockCCAPI_getYearDaySchedule: () => validateArgs_ScheduleEntryLockCCAPI_getYearDaySchedule,
  validateArgs_ScheduleEntryLockCCAPI_setDailyRepeatingSchedule: () => validateArgs_ScheduleEntryLockCCAPI_setDailyRepeatingSchedule,
  validateArgs_ScheduleEntryLockCCAPI_setEnabled: () => validateArgs_ScheduleEntryLockCCAPI_setEnabled,
  validateArgs_ScheduleEntryLockCCAPI_setTimezone: () => validateArgs_ScheduleEntryLockCCAPI_setTimezone,
  validateArgs_ScheduleEntryLockCCAPI_setWeekDaySchedule: () => validateArgs_ScheduleEntryLockCCAPI_setWeekDaySchedule,
  validateArgs_ScheduleEntryLockCCAPI_setYearDaySchedule: () => validateArgs_ScheduleEntryLockCCAPI_setYearDaySchedule
});
module.exports = __toCommonJS(ScheduleEntryLockCC_validateArgs_exports);
var v = __toESM(require("@zwave-js/core/validation"), 1);
function validateArgs_ScheduleEntryLockCCAPI_setEnabled() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function setEnabled(enabled, userId) {
        v.assert(v.primitive({ kind: "parameter", name: "enabled" }, "boolean")(enabled), v.optional({ kind: "parameter", name: "userId" }, v.primitive({ kind: "parameter", name: "userId" }, "number"))(userId));
        return __decoratedMethod.call(this, enabled, userId);
      }, "setEnabled");
    }
  };
}
__name(validateArgs_ScheduleEntryLockCCAPI_setEnabled, "validateArgs_ScheduleEntryLockCCAPI_setEnabled");
function validateArgs_ScheduleEntryLockCCAPI_setWeekDaySchedule() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function setWeekDaySchedule(slot, schedule) {
        v.assert(v.object({ kind: "parameter", name: "slot" }, "ScheduleEntryLockSlotId", { "userId": v.primitive({ kind: "property", name: "userId" }, "number"), "slotId": v.primitive({ kind: "property", name: "slotId" }, "number") })(slot), v.optional({ kind: "parameter", name: "schedule" }, v.object({ kind: "parameter", name: "schedule" }, "ScheduleEntryLockWeekDaySchedule", { "weekday": v.enum({ kind: "property", name: "weekday" }, "ScheduleEntryLockWeekday"), "startHour": v.primitive({ kind: "property", name: "startHour" }, "number"), "startMinute": v.primitive({ kind: "property", name: "startMinute" }, "number"), "stopHour": v.primitive({ kind: "property", name: "stopHour" }, "number"), "stopMinute": v.primitive({ kind: "property", name: "stopMinute" }, "number") }))(schedule));
        return __decoratedMethod.call(this, slot, schedule);
      }, "setWeekDaySchedule");
    }
  };
}
__name(validateArgs_ScheduleEntryLockCCAPI_setWeekDaySchedule, "validateArgs_ScheduleEntryLockCCAPI_setWeekDaySchedule");
function validateArgs_ScheduleEntryLockCCAPI_getWeekDaySchedule() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function getWeekDaySchedule(slot) {
        v.assert(v.object({ kind: "parameter", name: "slot" }, "ScheduleEntryLockSlotId", { "userId": v.primitive({ kind: "property", name: "userId" }, "number"), "slotId": v.primitive({ kind: "property", name: "slotId" }, "number") })(slot));
        return __decoratedMethod.call(this, slot);
      }, "getWeekDaySchedule");
    }
  };
}
__name(validateArgs_ScheduleEntryLockCCAPI_getWeekDaySchedule, "validateArgs_ScheduleEntryLockCCAPI_getWeekDaySchedule");
function validateArgs_ScheduleEntryLockCCAPI_setYearDaySchedule() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function setYearDaySchedule(slot, schedule) {
        v.assert(v.object({ kind: "parameter", name: "slot" }, "ScheduleEntryLockSlotId", { "userId": v.primitive({ kind: "property", name: "userId" }, "number"), "slotId": v.primitive({ kind: "property", name: "slotId" }, "number") })(slot), v.optional({ kind: "parameter", name: "schedule" }, v.object({ kind: "parameter", name: "schedule" }, "ScheduleEntryLockYearDaySchedule", { "startYear": v.primitive({ kind: "property", name: "startYear" }, "number"), "startMonth": v.primitive({ kind: "property", name: "startMonth" }, "number"), "startDay": v.primitive({ kind: "property", name: "startDay" }, "number"), "startHour": v.primitive({ kind: "property", name: "startHour" }, "number"), "startMinute": v.primitive({ kind: "property", name: "startMinute" }, "number"), "stopYear": v.primitive({ kind: "property", name: "stopYear" }, "number"), "stopMonth": v.primitive({ kind: "property", name: "stopMonth" }, "number"), "stopDay": v.primitive({ kind: "property", name: "stopDay" }, "number"), "stopHour": v.primitive({ kind: "property", name: "stopHour" }, "number"), "stopMinute": v.primitive({ kind: "property", name: "stopMinute" }, "number") }))(schedule));
        return __decoratedMethod.call(this, slot, schedule);
      }, "setYearDaySchedule");
    }
  };
}
__name(validateArgs_ScheduleEntryLockCCAPI_setYearDaySchedule, "validateArgs_ScheduleEntryLockCCAPI_setYearDaySchedule");
function validateArgs_ScheduleEntryLockCCAPI_getYearDaySchedule() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function getYearDaySchedule(slot) {
        v.assert(v.object({ kind: "parameter", name: "slot" }, "ScheduleEntryLockSlotId", { "userId": v.primitive({ kind: "property", name: "userId" }, "number"), "slotId": v.primitive({ kind: "property", name: "slotId" }, "number") })(slot));
        return __decoratedMethod.call(this, slot);
      }, "getYearDaySchedule");
    }
  };
}
__name(validateArgs_ScheduleEntryLockCCAPI_getYearDaySchedule, "validateArgs_ScheduleEntryLockCCAPI_getYearDaySchedule");
function validateArgs_ScheduleEntryLockCCAPI_setDailyRepeatingSchedule() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function setDailyRepeatingSchedule(slot, schedule) {
        v.assert(v.object({ kind: "parameter", name: "slot" }, "ScheduleEntryLockSlotId", { "userId": v.primitive({ kind: "property", name: "userId" }, "number"), "slotId": v.primitive({ kind: "property", name: "slotId" }, "number") })(slot), v.optional({ kind: "parameter", name: "schedule" }, v.object({ kind: "parameter", name: "schedule" }, "ScheduleEntryLockDailyRepeatingSchedule", { "weekdays": v.array({ kind: "property", name: "weekdays" }, "ScheduleEntryLockWeekday", v.enum({ kind: "item", name: "weekdays" }, "ScheduleEntryLockWeekday")), "startHour": v.primitive({ kind: "property", name: "startHour" }, "number"), "startMinute": v.primitive({ kind: "property", name: "startMinute" }, "number"), "durationHour": v.primitive({ kind: "property", name: "durationHour" }, "number"), "durationMinute": v.primitive({ kind: "property", name: "durationMinute" }, "number") }))(schedule));
        return __decoratedMethod.call(this, slot, schedule);
      }, "setDailyRepeatingSchedule");
    }
  };
}
__name(validateArgs_ScheduleEntryLockCCAPI_setDailyRepeatingSchedule, "validateArgs_ScheduleEntryLockCCAPI_setDailyRepeatingSchedule");
function validateArgs_ScheduleEntryLockCCAPI_getDailyRepeatingSchedule() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function getDailyRepeatingSchedule(slot) {
        v.assert(v.object({ kind: "parameter", name: "slot" }, "ScheduleEntryLockSlotId", { "userId": v.primitive({ kind: "property", name: "userId" }, "number"), "slotId": v.primitive({ kind: "property", name: "slotId" }, "number") })(slot));
        return __decoratedMethod.call(this, slot);
      }, "getDailyRepeatingSchedule");
    }
  };
}
__name(validateArgs_ScheduleEntryLockCCAPI_getDailyRepeatingSchedule, "validateArgs_ScheduleEntryLockCCAPI_getDailyRepeatingSchedule");
function validateArgs_ScheduleEntryLockCCAPI_setTimezone() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function setTimezone(timezone) {
        v.assert(v.object({ kind: "parameter", name: "timezone" }, "Timezone", { "standardOffset": v.primitive({ kind: "property", name: "standardOffset" }, "number"), "dstOffset": v.primitive({ kind: "property", name: "dstOffset" }, "number") })(timezone));
        return __decoratedMethod.call(this, timezone);
      }, "setTimezone");
    }
  };
}
__name(validateArgs_ScheduleEntryLockCCAPI_setTimezone, "validateArgs_ScheduleEntryLockCCAPI_setTimezone");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  validateArgs_ScheduleEntryLockCCAPI_getDailyRepeatingSchedule,
  validateArgs_ScheduleEntryLockCCAPI_getWeekDaySchedule,
  validateArgs_ScheduleEntryLockCCAPI_getYearDaySchedule,
  validateArgs_ScheduleEntryLockCCAPI_setDailyRepeatingSchedule,
  validateArgs_ScheduleEntryLockCCAPI_setEnabled,
  validateArgs_ScheduleEntryLockCCAPI_setTimezone,
  validateArgs_ScheduleEntryLockCCAPI_setWeekDaySchedule,
  validateArgs_ScheduleEntryLockCCAPI_setYearDaySchedule
});
//# sourceMappingURL=ScheduleEntryLockCC._validateArgs.js.map
