https://project.mdnd-it.cc/work_packages/94
This commit is contained in:
2025-08-23 04:25:28 +02:00
parent 725516ad6c
commit 19cfa031d0
25823 changed files with 1095587 additions and 2801760 deletions
+26
View File
@@ -0,0 +1,26 @@
export declare enum UserState {
REGISTERED_NOT_VERIFIED = 0,
VERIFIED_REGULAR = 1,
VERIFIED_PREMIUM = 2,
SOFT_DELETE = 3,
DEACTIVATED = 4,
ADMIN = 5
}
export declare class UserAggregate {
id: string;
orgid: string | null;
username: string;
password: string;
email: string;
fname: string;
lname: string;
token: string | null;
TokenExpires: Date | null;
type: string;
phone: string | null;
state: UserState;
regdate: Date;
updatedate: Date;
Orglogindate: Date | null;
}
//# sourceMappingURL=UserAggregate.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"UserAggregate.d.ts","sourceRoot":"","sources":["../../../src/Domain/User/UserAggregate.ts"],"names":[],"mappings":"AAEA,oBAAY,SAAS;IACjB,uBAAuB,IAAI;IAC3B,gBAAgB,IAAI;IACpB,gBAAgB,IAAI;IACpB,WAAW,IAAI;IACf,WAAW,IAAI;IACf,KAAK,IAAI;CACZ;AAED,qBACa,aAAa;IAEtB,EAAE,EAAG,MAAM,CAAC;IAGZ,KAAK,EAAG,MAAM,GAAG,IAAI,CAAC;IAGtB,QAAQ,EAAG,MAAM,CAAC;IAGlB,QAAQ,EAAG,MAAM,CAAC;IAGlB,KAAK,EAAG,MAAM,CAAC;IAGf,KAAK,EAAG,MAAM,CAAC;IAGf,KAAK,EAAG,MAAM,CAAC;IAGf,KAAK,EAAG,MAAM,GAAG,IAAI,CAAC;IAGtB,YAAY,EAAG,IAAI,GAAG,IAAI,CAAC;IAG3B,IAAI,EAAG,MAAM,CAAC;IAGd,KAAK,EAAG,MAAM,GAAG,IAAI,CAAC;IAMtB,KAAK,EAAG,SAAS,CAAC;IAGlB,OAAO,EAAG,IAAI,CAAC;IAGf,UAAU,EAAG,IAAI,CAAC;IAGlB,YAAY,EAAG,IAAI,GAAG,IAAI,CAAC;CAC9B"}
+92
View File
@@ -0,0 +1,92 @@
"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 __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.UserAggregate = exports.UserState = void 0;
const typeorm_1 = require("typeorm");
var UserState;
(function (UserState) {
UserState[UserState["REGISTERED_NOT_VERIFIED"] = 0] = "REGISTERED_NOT_VERIFIED";
UserState[UserState["VERIFIED_REGULAR"] = 1] = "VERIFIED_REGULAR";
UserState[UserState["VERIFIED_PREMIUM"] = 2] = "VERIFIED_PREMIUM";
UserState[UserState["SOFT_DELETE"] = 3] = "SOFT_DELETE";
UserState[UserState["DEACTIVATED"] = 4] = "DEACTIVATED";
UserState[UserState["ADMIN"] = 5] = "ADMIN";
})(UserState || (exports.UserState = UserState = {}));
let UserAggregate = class UserAggregate {
};
exports.UserAggregate = UserAggregate;
__decorate([
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
__metadata("design:type", String)
], UserAggregate.prototype, "id", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
__metadata("design:type", Object)
], UserAggregate.prototype, "orgid", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 100, unique: true }),
__metadata("design:type", String)
], UserAggregate.prototype, "username", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
__metadata("design:type", String)
], UserAggregate.prototype, "password", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255, unique: true }),
__metadata("design:type", String)
], UserAggregate.prototype, "email", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
__metadata("design:type", String)
], UserAggregate.prototype, "fname", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
__metadata("design:type", String)
], UserAggregate.prototype, "lname", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
__metadata("design:type", Object)
], UserAggregate.prototype, "token", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
__metadata("design:type", Object)
], UserAggregate.prototype, "TokenExpires", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 50 }),
__metadata("design:type", String)
], UserAggregate.prototype, "type", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: true }),
__metadata("design:type", Object)
], UserAggregate.prototype, "phone", void 0);
__decorate([
(0, typeorm_1.Column)({
type: 'int',
default: UserState.REGISTERED_NOT_VERIFIED
}),
__metadata("design:type", Number)
], UserAggregate.prototype, "state", void 0);
__decorate([
(0, typeorm_1.CreateDateColumn)(),
__metadata("design:type", Date)
], UserAggregate.prototype, "regdate", void 0);
__decorate([
(0, typeorm_1.UpdateDateColumn)(),
__metadata("design:type", Date)
], UserAggregate.prototype, "updatedate", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
__metadata("design:type", Object)
], UserAggregate.prototype, "Orglogindate", void 0);
exports.UserAggregate = UserAggregate = __decorate([
(0, typeorm_1.Entity)('Users')
], UserAggregate);
//# sourceMappingURL=UserAggregate.js.map
@@ -0,0 +1 @@
{"version":3,"file":"UserAggregate.js","sourceRoot":"","sources":["../../../src/Domain/User/UserAggregate.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAqG;AAErG,IAAY,SAOX;AAPD,WAAY,SAAS;IACjB,+EAA2B,CAAA;IAC3B,iEAAoB,CAAA;IAC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