UNPKG

vinmonopolet-ts

Version:

Extracts information on products, categories and stores from Vinmonopolet

123 lines (122 loc) 5.42 kB
"use strict"; 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 __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.PopulatedProduct = void 0; const class_validator_1 = require("class-validator"); const BaseProduct_1 = __importDefault(require("./BaseProduct")); class PopulatedProduct extends BaseProduct_1.default { constructor(code, name, url, price, pricePerLiter, images, volume, mainCategory, subCategory, country, district, subDistrict, productSeelection, buyable, status, abv, allergens, bioDynamic, color, eco, environmentalPackaging, expired, fairTrade, gluten, foodPairing, kosher, storable, containerType, taste, aroma, rawMaterial, sugar, acid, tannins, bitterness, freshness, fullness, ageLimit, description, summary, method, distributor, distributorId, wholesaler, vintage) { super(code, name, url, price, pricePerLiter, images, volume, mainCategory, subCategory, country, district, subDistrict, productSeelection, undefined, buyable, status); this.abv = abv; this.allergens = allergens; this.bioDynamic = bioDynamic; this.color = color; this.eco = eco; this.environmentalPackaging = environmentalPackaging; this.expired = expired; this.fairTrade = fairTrade; this.glutenFree = gluten; this.foodPairing = foodPairing; this.kosher = kosher; this.storable = storable; this.containerType = containerType; this.taste = taste; this.aroma = aroma; this.rawMaterial = rawMaterial; this.sugar = sugar; this.acid = acid; this.tannins = tannins; this.bitterness = bitterness; this.freshness = freshness; this.fullness = fullness; this.ageLimit = ageLimit; this.description = description; this.summary = summary; this.method = method; this.distributor = distributor; this.distributorId = distributorId; this.wholesaler = wholesaler; this.vintage = vintage; } } __decorate([ (0, class_validator_1.IsNotEmpty)(), (0, class_validator_1.IsNumber)() ], PopulatedProduct.prototype, "abv", void 0); __decorate([ (0, class_validator_1.IsString)(), (0, class_validator_1.IsOptional)() ], PopulatedProduct.prototype, "allergens", void 0); __decorate([ (0, class_validator_1.IsBoolean)() ], PopulatedProduct.prototype, "bioDynamic", void 0); __decorate([ (0, class_validator_1.IsString)() ], PopulatedProduct.prototype, "color", void 0); __decorate([ (0, class_validator_1.IsBoolean)() ], PopulatedProduct.prototype, "eco", void 0); __decorate([ (0, class_validator_1.IsBoolean)() ], PopulatedProduct.prototype, "environmentalPackaging", void 0); __decorate([ (0, class_validator_1.IsBoolean)() ], PopulatedProduct.prototype, "expired", void 0); __decorate([ (0, class_validator_1.IsBoolean)() ], PopulatedProduct.prototype, "fairTrade", void 0); __decorate([ (0, class_validator_1.IsBoolean)() ], PopulatedProduct.prototype, "glutenFree", void 0); __decorate([ (0, class_validator_1.IsBoolean)() ], PopulatedProduct.prototype, "kosher", void 0); __decorate([ (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsString)() ], PopulatedProduct.prototype, "storable", void 0); __decorate([ (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsString)() ], PopulatedProduct.prototype, "containerType", void 0); __decorate([ (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsString)() ], PopulatedProduct.prototype, "taste", void 0); __decorate([ (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsString)() ], PopulatedProduct.prototype, "aroma", void 0); __decorate([ (0, class_validator_1.IsOptional)() ], PopulatedProduct.prototype, "sugar", void 0); __decorate([ (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsNumber)() ], PopulatedProduct.prototype, "acid", void 0); __decorate([ (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsNumber)() ], PopulatedProduct.prototype, "tannins", void 0); __decorate([ (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsNumber)() ], PopulatedProduct.prototype, "bitterness", void 0); __decorate([ (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsNumber)() ], PopulatedProduct.prototype, "freshness", void 0); __decorate([ (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsNumber)() ], PopulatedProduct.prototype, "fullness", void 0); exports.PopulatedProduct = PopulatedProduct; exports.default = PopulatedProduct;