UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.

22 lines 772 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const joi_1 = __importDefault(require("joi")); class Group { constructor({ id, name, description, mappingsSSO, createdBy, createdAt, }) { if (!id) { throw new TypeError('Id is required'); } joi_1.default.assert(name, joi_1.default.string(), 'Name'); this.id = id; this.name = name; this.description = description; this.mappingsSSO = mappingsSSO; this.createdBy = createdBy; this.createdAt = createdAt; } } exports.default = Group; //# sourceMappingURL=group.js.map