hoover-washer-status-check
Version:
Hoover washer status check
67 lines (66 loc) • 2.48 kB
JavaScript
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const yup = __importStar(require("yup"));
const LaundryCycleState_1 = require("./LaundryCycleState");
exports.validationSchema = yup.object().shape({
WiFiStatus: yup.boolean(),
Err: yup.number().integer(),
MachMd: yup.number().oneOf(LaundryCycleState_1.laundryCycleStateValues),
Pr: yup.number().integer(),
PrPh: yup.number().integer(),
/*
public static final int WasherPhaseDrying = 6;
public static final int WasherPhaseEndMode = 5;
public static final int WasherPhaseErrorMode = 7;
public static final int WasherPhaseGnPause = 9;
public static final int WasherPhaseLastRinse = 4;
public static final int WasherPhaseNoPhase = 0;
public static final int WasherPhaseNonApplicable = 255;
public static final int WasherPhasePreWash = 1;
public static final int WasherPhaseRinse = 3;
public static final int WasherPhaseWash = 2;
*/
PrCode: yup.number().integer(),
SLevel: yup.number().integer(),
Temp: yup.number().integer(),
SpinSp: yup.number().integer(),
Steam: yup.number().integer(),
DryT: yup.number().integer(),
DelVal: yup.number().integer(),
RemTime: yup.number().integer(),
RecipeId: yup.string(),
Lang: yup.number().integer(),
FillR: yup.number().integer(),
DisTestOn: yup.boolean(),
DisTestRes: yup.boolean(),
CheckUpState: yup.number().integer(),
Det: yup.boolean(),
Soft: yup.boolean(),
DetWarn: yup.boolean(),
SoftWarn: yup.boolean(),
DetPreW: yup.boolean(),
SoftPreW: yup.boolean(),
DPrgCnt: yup.number().integer(),
SPrgCnt: yup.number().integer(),
WaterHard: yup.number().integer(),
rED: yup.number().integer(),
T0W: yup.number().integer(),
TIW: yup.number().integer(),
T0R: yup.number().integer(),
numF: yup.number().integer(),
unbF: yup.number().integer(),
unbC: yup.number().integer(),
NtcW: yup.number().integer(),
NtcD: yup.number().integer(),
motS: yup.number().integer(),
APSoff: yup.number().integer(),
APSfreq: yup.number().integer(),
chartL: yup.number().integer(),
});