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
@@ -0,0 +1,23 @@
import { UserAggregate } from '../User/UserAggregate';
export declare const OrganizationState: {
readonly REGISTERED: 0;
readonly ACTIVE: 1;
readonly SOFT_DELETE: 2;
};
export type OrganizationStateType = typeof OrganizationState[keyof typeof OrganizationState];
export declare class OrganizationAggregate {
id: string;
name: string;
contactfname: string;
contactlname: string;
contactphone: string;
contactemail: string;
state: OrganizationStateType;
regdate: Date;
updatedate: Date;
url: string | null;
userinorg: number;
maxOrganizationalDecks: number | null;
users: UserAggregate[];
}
//# sourceMappingURL=OrganizationAggregate.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"OrganizationAggregate.d.ts","sourceRoot":"","sources":["../../../src/Domain/Organization/OrganizationAggregate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE7F,qBACa,qBAAqB;IAE9B,EAAE,EAAG,MAAM,CAAC;IAGZ,IAAI,EAAG,MAAM,CAAC;IAGd,YAAY,EAAG,MAAM,CAAC;IAGtB,YAAY,EAAG,MAAM,CAAC;IAGtB,YAAY,EAAG,MAAM,CAAC;IAGtB,YAAY,EAAG,MAAM,CAAC;IAGtB,KAAK,EAAG,qBAAqB,CAAC;IAG9B,OAAO,EAAG,IAAI,CAAC;IAGf,UAAU,EAAG,IAAI,CAAC;IAGlB,GAAG,EAAG,MAAM,GAAG,IAAI,CAAC;IAGpB,SAAS,EAAG,MAAM,CAAC;IAGnB,sBAAsB,EAAG,MAAM,GAAG,IAAI,CAAC;IAGvC,KAAK,EAAG,aAAa,EAAE,CAAC;CACvB"}
@@ -0,0 +1,78 @@
"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.OrganizationAggregate = exports.OrganizationState = void 0;
const typeorm_1 = require("typeorm");
const UserAggregate_1 = require("../User/UserAggregate");
exports.OrganizationState = {
REGISTERED: 0,
ACTIVE: 1,
SOFT_DELETE: 2
};
let OrganizationAggregate = class OrganizationAggregate {
};
exports.OrganizationAggregate = OrganizationAggregate;
__decorate([
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
__metadata("design:type", String)
], OrganizationAggregate.prototype, "id", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
__metadata("design:type", String)
], OrganizationAggregate.prototype, "name", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
__metadata("design:type", String)
], OrganizationAggregate.prototype, "contactfname", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
__metadata("design:type", String)
], OrganizationAggregate.prototype, "contactlname", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 20 }),
__metadata("design:type", String)
], OrganizationAggregate.prototype, "contactphone", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
__metadata("design:type", String)
], OrganizationAggregate.prototype, "contactemail", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'int', default: exports.OrganizationState.REGISTERED }),
__metadata("design:type", Number)
], OrganizationAggregate.prototype, "state", void 0);
__decorate([
(0, typeorm_1.CreateDateColumn)(),
__metadata("design:type", Date)
], OrganizationAggregate.prototype, "regdate", void 0);
__decorate([
(0, typeorm_1.UpdateDateColumn)(),
__metadata("design:type", Date)
], OrganizationAggregate.prototype, "updatedate", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
__metadata("design:type", Object)
], OrganizationAggregate.prototype, "url", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
__metadata("design:type", Number)
], OrganizationAggregate.prototype, "userinorg", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
__metadata("design:type", Object)
], OrganizationAggregate.prototype, "maxOrganizationalDecks", void 0);
__decorate([
(0, typeorm_1.OneToMany)(() => UserAggregate_1.UserAggregate, user => user.orgid),
__metadata("design:type", Array)
], OrganizationAggregate.prototype, "users", void 0);
exports.OrganizationAggregate = OrganizationAggregate = __decorate([
(0, typeorm_1.Entity)('Organizations')
], OrganizationAggregate);
//# sourceMappingURL=OrganizationAggregate.js.map
@@ -0,0 +1 @@
{"version":3,"file":"OrganizationAggregate.js","sourceRoot":"","sources":["../../../src/Domain/Organization/OrganizationAggregate.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgH;AAChH,yDAAsD;AAEzC,QAAA,iBAAiB,GAAG;IAC7B,UAAU,EAAE,CAAC;IACb,MAAM,EAAE,CAAC;IACT,WAAW,EAAE,CAAC;CACR,CAAC;AAKJ,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAuC7B,CAAA;AAvCQ,sDAAqB;AAE9B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;iDACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;mDAC3B;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,E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