@nestjs-mod/two-factor
Version:
Two factor module with an error filter, guard, controller, database migrations and rest-sdk for work with module from other nodejs appliaction
63 lines • 1.99 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TwoFactorUser = void 0;
const tslib_1 = require("tslib");
const swagger_1 = require("@nestjs/swagger");
const two_factor_code_entity_1 = require("./two-factor-code.entity");
class TwoFactorUser {
}
exports.TwoFactorUser = TwoFactorUser;
tslib_1.__decorate([
(0, swagger_1.ApiProperty)({
type: 'string',
}),
tslib_1.__metadata("design:type", String)
], TwoFactorUser.prototype, "id", void 0);
tslib_1.__decorate([
(0, swagger_1.ApiProperty)({
type: 'string',
nullable: true,
}),
tslib_1.__metadata("design:type", Object)
], TwoFactorUser.prototype, "username", void 0);
tslib_1.__decorate([
(0, swagger_1.ApiProperty)({
type: 'string',
}),
tslib_1.__metadata("design:type", String)
], TwoFactorUser.prototype, "secret", void 0);
tslib_1.__decorate([
(0, swagger_1.ApiProperty)({
type: 'string',
}),
tslib_1.__metadata("design:type", String)
], TwoFactorUser.prototype, "externalTenantId", void 0);
tslib_1.__decorate([
(0, swagger_1.ApiProperty)({
type: 'string',
}),
tslib_1.__metadata("design:type", String)
], TwoFactorUser.prototype, "externalUserId", void 0);
tslib_1.__decorate([
(0, swagger_1.ApiProperty)({
type: 'string',
format: 'date-time',
}),
tslib_1.__metadata("design:type", Date)
], TwoFactorUser.prototype, "createdAt", void 0);
tslib_1.__decorate([
(0, swagger_1.ApiProperty)({
type: 'string',
format: 'date-time',
}),
tslib_1.__metadata("design:type", Date)
], TwoFactorUser.prototype, "updatedAt", void 0);
tslib_1.__decorate([
(0, swagger_1.ApiProperty)({
type: () => two_factor_code_entity_1.TwoFactorCode,
isArray: true,
required: false,
}),
tslib_1.__metadata("design:type", Array)
], TwoFactorUser.prototype, "TwoFactorCode", void 0);
//# sourceMappingURL=two-factor-user.entity.js.map