UNPKG

homebridge-config-ui-x

Version:

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

28 lines 1.45 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 { IsDefined, IsNotEmpty, IsString } from 'class-validator'; export class AccessorySetCharacteristicDto { characteristicType; value; } __decorate([ ApiProperty({ required: true, type: String }), IsDefined(), IsString(), __metadata("design:type", String) ], AccessorySetCharacteristicDto.prototype, "characteristicType", void 0); __decorate([ ApiProperty({ required: true, type: 'string', title: 'Accepts a string, boolean, or integer value.' }), IsDefined(), IsNotEmpty(), __metadata("design:type", Object) ], AccessorySetCharacteristicDto.prototype, "value", void 0); //# sourceMappingURL=accessories.dto.js.map