UNPKG

homebridge-config-ui-x

Version:

A web based management, configuration and control platform for Homebridge.

72 lines 2.56 kB
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; import { ApiProperty } from '@nestjs/swagger'; import { IsBoolean, IsDefined, IsInt, IsOptional, IsString, Max, Min, ValidateIf } from 'class-validator'; export class SetBridgeAlertDto { value; } __decorate([ ApiProperty({ type: Boolean, description: 'Whether to hide the alert for this bridge', example: true, }), IsDefined(), IsBoolean(), __metadata("design:type", Boolean) ], SetBridgeAlertDto.prototype, "value", void 0); export class SetScheduledRestartCronDto { value; } __decorate([ ApiProperty({ type: String, description: 'Cron expression for scheduled restart (or `null` to disable).', example: '0 5 * * *', required: false, nullable: true, }), ValidateIf(o => o.value !== null), IsString(), __metadata("design:type", String) ], SetScheduledRestartCronDto.prototype, "value", void 0); export class PortRangeDto { start; end; } __decorate([ ApiProperty({ type: Number, description: 'Range start (inclusive). Must be a port number between 1025 and 65533.', required: false, nullable: true, }), ValidateIf((_o, v) => v !== null && v !== undefined), IsInt(), Min(1025), Max(65533), IsOptional(), __metadata("design:type", Number) ], PortRangeDto.prototype, "start", void 0); __decorate([ ApiProperty({ type: Number, description: 'Range end (inclusive). Must be a port number between 1025 and 65533.', required: false, nullable: true, }), ValidateIf((_o, v) => v !== null && v !== undefined), IsInt(), Min(1025), Max(65533), IsOptional(), __metadata("design:type", Number) ], PortRangeDto.prototype, "end", void 0); //# sourceMappingURL=config-editor.dto.js.map