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
+41
View File
@@ -0,0 +1,41 @@
import { OrganizationAggregate } from '../Organization/OrganizationAggregate';
export declare enum Type {
LUCK = 0,
JOKER = 1,
QUESTION = 2
}
export declare enum CType {
PUBLIC = 0,
PRIVATE = 1,
ORGANIZATION = 2
}
export declare enum State {
ACTIVE = 0,
SOFT_DELETE = 1
}
export declare enum CardType {
QUIZ = 0,
SENTENCE_PAIRING = 1,
OWN_ANSWER = 2,
TRUE_FALSE = 3,
CLOSER = 4
}
export interface Card {
text: string;
type?: CardType;
answer?: string | null;
}
export declare class DeckAggregate {
id: string;
name: string;
type: Type;
userid: string;
creationdate: Date;
cards: Card[];
playedNumber: number;
ctype: CType;
updatedate: Date;
state: State;
organization: OrganizationAggregate | null;
}
//# sourceMappingURL=DeckAggregate.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"DeckAggregate.d.ts","sourceRoot":"","sources":["../../../src/Domain/Deck/DeckAggregate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,oBAAY,IAAI;IACZ,IAAI,IAAI;IACR,KAAK,IAAI;IACT,QAAQ,IAAI;CACf;AAED,oBAAY,KAAK;IACb,MAAM,IAAI;IACV,OAAO,IAAI;IACX,YAAY,IAAI;CACnB;AAED,oBAAY,KAAK;IACb,MAAM,IAAI;IACV,WAAW,IAAI;CAClB;AAED,oBAAY,QAAQ;IAChB,IAAI,IAAI;IACR,gBAAgB,IAAI;IACpB,UAAU,IAAI;IACd,UAAU,IAAI;IACd,MAAM,IAAI;CACb;AAED,MAAM,WAAW,IAAI;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,qBACa,aAAa;IAEtB,EAAE,EAAG,MAAM,CAAC;IAGZ,IAAI,EAAG,MAAM,CAAC;IAGd,IAAI,EAAG,IAAI,CAAC;IAGZ,MAAM,EAAG,MAAM,CAAC;IAGhB,YAAY,EAAG,IAAI,CAAC;IAGpB,KAAK,EAAG,IAAI,EAAE,CAAC;IAGf,YAAY,EAAG,MAAM,CAAC;IAGtB,KAAK,EAAG,KAAK,CAAC;IAGd,UAAU,EAAG,IAAI,CAAC;IAGd,KAAK,EAAG,KAAK,CAAC;IAIlB,YAAY,EAAG,qBAAqB,GAAG,IAAI,CAAC;CAC/C"}
+91
View File
@@ -0,0 +1,91 @@
"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.DeckAggregate = exports.CardType = exports.State = exports.CType = exports.Type = void 0;
const typeorm_1 = require("typeorm");
const OrganizationAggregate_1 = require("../Organization/OrganizationAggregate");
var Type;
(function (Type) {
Type[Type["LUCK"] = 0] = "LUCK";
Type[Type["JOKER"] = 1] = "JOKER";
Type[Type["QUESTION"] = 2] = "QUESTION";
})(Type || (exports.Type = Type = {}));
var CType;
(function (CType) {
CType[CType["PUBLIC"] = 0] = "PUBLIC";
CType[CType["PRIVATE"] = 1] = "PRIVATE";
CType[CType["ORGANIZATION"] = 2] = "ORGANIZATION";
})(CType || (exports.CType = CType = {}));
var State;
(function (State) {
State[State["ACTIVE"] = 0] = "ACTIVE";
State[State["SOFT_DELETE"] = 1] = "SOFT_DELETE";
})(State || (exports.State = State = {}));
var CardType;
(function (CardType) {
CardType[CardType["QUIZ"] = 0] = "QUIZ";
CardType[CardType["SENTENCE_PAIRING"] = 1] = "SENTENCE_PAIRING";
CardType[CardType["OWN_ANSWER"] = 2] = "OWN_ANSWER";
CardType[CardType["TRUE_FALSE"] = 3] = "TRUE_FALSE";
CardType[CardType["CLOSER"] = 4] = "CLOSER";
})(CardType || (exports.CardType = CardType = {}));
let DeckAggregate = class DeckAggregate {
};
exports.DeckAggregate = DeckAggregate;
__decorate([
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
__metadata("design:type", String)
], DeckAggregate.prototype, "id", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
__metadata("design:type", String)
], DeckAggregate.prototype, "name", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'int' }),
__metadata("design:type", Number)
], DeckAggregate.prototype, "type", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'uuid', name: 'user_id' }),
__metadata("design:type", String)
], DeckAggregate.prototype, "userid", void 0);
__decorate([
(0, typeorm_1.CreateDateColumn)({ name: 'creation_date' }),
__metadata("design:type", Date)
], DeckAggregate.prototype, "creationdate", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'json' }),
__metadata("design:type", Array)
], DeckAggregate.prototype, "cards", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'int', default: 0, name: 'played_number' }),
__metadata("design:type", Number)
], DeckAggregate.prototype, "playedNumber", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'int', default: CType.PUBLIC }),
__metadata("design:type", Number)
], DeckAggregate.prototype, "ctype", void 0);
__decorate([
(0, typeorm_1.UpdateDateColumn)({ name: 'update_date' }),
__metadata("design:type", Date)
], DeckAggregate.prototype, "updatedate", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'int', default: State.ACTIVE }),
__metadata("design:type", Number)
], DeckAggregate.prototype, "state", void 0);
__decorate([
(0, typeorm_1.ManyToOne)(() => OrganizationAggregate_1.OrganizationAggregate, { nullable: true }),
(0, typeorm_1.JoinColumn)({ name: 'organization_id' }),
__metadata("design:type", Object)
], DeckAggregate.prototype, "organization", void 0);
exports.DeckAggregate = DeckAggregate = __decorate([
(0, typeorm_1.Entity)('Decks')
], DeckAggregate);
//# sourceMappingURL=DeckAggregate.js.map
@@ -0,0 +1 @@
{"version":3,"file":"DeckAggregate.js","sourceRoot":"","sources":["../../../src/Domain/Deck/DeckAggregate.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4H;AAC5H,iFAA8E;AAE9E,IAAY,IAIX;AAJD,WAAY,IAAI;IACZ,+BAAQ,CAAA;IACR,iCAAS,CAAA;IACT,uCAAY,CAAA;AAChB,CAAC,EAJW,IAAI,oBAAJ,IAAI,QAIf;AAED,IAAY,KAIX;AAJD,WAAY,KAAK;IACb,qCAAU,CAAA;IACV,uCAAW,CAAA;IACX,iDAAgB,CAAA;AACpB,CAAC,EAJW,KAAK,qBAAL,KAAK,QAIhB;AAED,IAAY,KAGX;AAHD,WAAY,KAAK;IACb,qCAAU,CAAA;IACV,+CAAe,CAAA;AACnB,CAAC,EAHW,KAAK,qBAAL,KAAK,QAGhB;AAED,IAAY,QAMX;AAND,WAAY,QAAQ;IAChB,uCAAQ,CAAA;IACR,+DAAoB,CAAA;IACpB,mDAAc,CAAA;IACd,mDAAc,CAAA;IACd,2CAAU,CAAA;AACd,CAAC,EANW,QAAQ,wBAAR,QAAQ,QAMnB;AASM,IAAM,aAAa,GAAnB,MAAM,aAAa;CAkCzB,CAAA;AAlCY,sCAAa;AAEtB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;yCACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;2CAC3B;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,E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