"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
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 __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DemandMixin = void 0;
const rdfine_1 = __importStar(require("@tpluscode/rdfine"));
const $rdf = __importStar(require("@rdf-esm/data-model"));
const namespace_1 = require("./lib/namespace");
const Intangible_1 = require("./Intangible");
function DemandMixin(Resource) {
    let DemandClass = class DemandClass extends Intangible_1.IntangibleMixin(Resource) {
    };
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "acceptedPaymentMethod", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "advanceBookingRequirement", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "areaServed", void 0);
    __decorate([
        rdfine_1.property.literal({ path: namespace_1.schema.areaServed }),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "areaServedLiteral", void 0);
    __decorate([
        rdfine_1.property(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "availability", void 0);
    __decorate([
        rdfine_1.property.literal({ type: Date }),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "availabilityEnds", void 0);
    __decorate([
        rdfine_1.property.literal({ type: Date }),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "availabilityStarts", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "availableAtOrFrom", void 0);
    __decorate([
        rdfine_1.property(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "availableDeliveryMethod", void 0);
    __decorate([
        rdfine_1.property(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "businessFunction", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "deliveryLeadTime", void 0);
    __decorate([
        rdfine_1.property(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "eligibleCustomerType", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "eligibleDuration", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "eligibleQuantity", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "eligibleRegion", void 0);
    __decorate([
        rdfine_1.property.literal({ path: namespace_1.schema.eligibleRegion }),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "eligibleRegionLiteral", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "eligibleTransactionVolume", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "gtin", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "gtin12", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "gtin13", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "gtin14", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "gtin8", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "includesObject", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "ineligibleRegion", void 0);
    __decorate([
        rdfine_1.property.literal({ path: namespace_1.schema.ineligibleRegion }),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "ineligibleRegionLiteral", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "inventoryLevel", void 0);
    __decorate([
        rdfine_1.property(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "itemCondition", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "itemOffered", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "mpn", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "priceSpecification", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "seller", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "serialNumber", void 0);
    __decorate([
        rdfine_1.property.literal(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "sku", void 0);
    __decorate([
        rdfine_1.property.literal({ type: Date, datatype: $rdf.namedNode('http://www.w3.org/2001/XMLSchema#date') }),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "validFrom", void 0);
    __decorate([
        rdfine_1.property.literal({ type: Date, datatype: $rdf.namedNode('http://www.w3.org/2001/XMLSchema#date') }),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "validThrough", void 0);
    __decorate([
        rdfine_1.property.resource(),
        __metadata("design:type", Object)
    ], DemandClass.prototype, "warranty", void 0);
    DemandClass = __decorate([
        rdfine_1.namespace(namespace_1.schema)
    ], DemandClass);
    return DemandClass;
}
exports.DemandMixin = DemandMixin;
class DemandImpl extends DemandMixin(rdfine_1.default) {
    constructor(arg, init) {
        super(arg, init);
        this.types.add(namespace_1.schema.Demand);
    }
}
DemandImpl.__mixins = [DemandMixin, Intangible_1.IntangibleMixin];
DemandMixin.appliesTo = namespace_1.schema.Demand;
DemandMixin.Class = DemandImpl;
