"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TypeIsPasswordToSequelize = exports.TypeIsPasswordToSwagger = void 0;
const sequelize_1 = require("sequelize");
const toSequelizeGenerator_1 = require("./generators/toSequelizeGenerator");
const toSwaggerGenerator_1 = require("./generators/toSwaggerGenerator");
const typeGenerator_1 = require("./generators/typeGenerator");
exports.TypeIsPasswordToSwagger = (0, toSwaggerGenerator_1.toSwaggerGenerator)((options) => ({
    type: 'string',
    format: 'password',
    description: options === null || options === void 0 ? void 0 : options.comment,
}));
exports.TypeIsPasswordToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: sequelize_1.DataTypes.STRING(512), comment: options === null || options === void 0 ? void 0 : options.comment })));
const TypeIsPassword = (0, typeGenerator_1.typeGenerator)((options) => ({
    __name: 'password',
    toSwagger: () => (0, exports.TypeIsPasswordToSwagger)(options),
    toSequelize: () => (0, exports.TypeIsPasswordToSequelize)(options),
}));
exports.default = TypeIsPassword;
//# sourceMappingURL=password.js.map