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 1095586 additions and 2801759 deletions
+33
View File
@@ -0,0 +1,33 @@
export interface Message {
id: string;
date: Date;
userid: string;
text: string;
}
export declare const ChatState: {
readonly ACTIVE: 0;
readonly ARCHIVE: 1;
readonly SOFT_DELETE: 2;
};
export type ChatStateType = typeof ChatState[keyof typeof ChatState];
export declare const ChatType: {
readonly DIRECT: "direct";
readonly GROUP: "group";
readonly GAME: "game";
};
export type ChatTypeType = typeof ChatType[keyof typeof ChatType];
export declare class ChatAggregate {
id: string;
type: ChatTypeType;
name: string | null;
gameId: string | null;
createdBy: string | null;
users: string[];
messages: Message[];
lastActivity: Date | null;
createDate: Date;
updateDate: Date;
state: ChatStateType;
archiveDate: Date | null;
}
//# sourceMappingURL=ChatAggregate.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"ChatAggregate.d.ts","sourceRoot":"","sources":["../../../src/Domain/Chat/ChatAggregate.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,OAAO;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,SAAS;;;;CAIZ,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAErE,eAAO,MAAM,QAAQ;;;;CAIX,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,QAAQ,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;AAElE,qBACa,aAAa;IAEtB,EAAE,EAAG,MAAM,CAAC;IAGZ,IAAI,EAAG,YAAY,CAAC;IAGpB,IAAI,EAAG,MAAM,GAAG,IAAI,CAAC;IAGrB,MAAM,EAAG,MAAM,GAAG,IAAI,CAAC;IAGvB,SAAS,EAAG,MAAM,GAAG,IAAI,CAAC;IAG1B,KAAK,EAAG,MAAM,EAAE,CAAC;IAGjB,QAAQ,EAAG,OAAO,EAAE,CAAC;IAGrB,YAAY,EAAG,IAAI,GAAG,IAAI,CAAC;IAG3B,UAAU,EAAG,IAAI,CAAC;IAGlB,UAAU,EAAG,IAAI,CAAC;IAGlB,KAAK,EAAG,aAAa,CAAC;IAItB,WAAW,EAAG,IAAI,GAAG,IAAI,CAAC;CAC7B"}
+78
View File
@@ -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.ChatAggregate = exports.ChatType = exports.ChatState = void 0;
const typeorm_1 = require("typeorm");
exports.ChatState = {
ACTIVE: 0,
ARCHIVE: 1,
SOFT_DELETE: 2
};
exports.ChatType = {
DIRECT: 'direct',
GROUP: 'group',
GAME: 'game'
};
let ChatAggregate = class ChatAggregate {
};
exports.ChatAggregate = ChatAggregate;
__decorate([
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
__metadata("design:type", String)
], ChatAggregate.prototype, "id", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 50, default: exports.ChatType.DIRECT }),
__metadata("design:type", String)
], ChatAggregate.prototype, "type", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
__metadata("design:type", Object)
], ChatAggregate.prototype, "name", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
__metadata("design:type", Object)
], ChatAggregate.prototype, "gameId", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
__metadata("design:type", Object)
], ChatAggregate.prototype, "createdBy", void 0);
__decorate([
(0, typeorm_1.Column)('uuid', { array: true }),
__metadata("design:type", Array)
], ChatAggregate.prototype, "users", void 0);
__decorate([
(0, typeorm_1.Column)('json', { default: [] }),
__metadata("design:type", Array)
], ChatAggregate.prototype, "messages", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
__metadata("design:type", Object)
], ChatAggregate.prototype, "lastActivity", void 0);
__decorate([
(0, typeorm_1.CreateDateColumn)(),
__metadata("design:type", Date)
], ChatAggregate.prototype, "createDate", void 0);
__decorate([
(0, typeorm_1.UpdateDateColumn)(),
__metadata("design:type", Date)
], ChatAggregate.prototype, "updateDate", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'int', default: exports.ChatState.ACTIVE }),
__metadata("design:type", Number)
], ChatAggregate.prototype, "state", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
__metadata("design:type", Object)
], ChatAggregate.prototype, "archiveDate", void 0);
exports.ChatAggregate = ChatAggregate = __decorate([
(0, typeorm_1.Entity)('Chats')
], ChatAggregate);
//# sourceMappingURL=ChatAggregate.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ChatAggregate.js","sourceRoot":"","sources":["../../../src/Domain/Chat/ChatAggregate.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAqG;AASxF,QAAA,SAAS,GAAG;IACrB,MAAM,EAAE,CAAC;IACT,OAAO,EAAE,CAAC;IACV,WAAW,EAAE,CAAC;CACR,CAAC;AAIE,QAAA,QAAQ,GAAG;IACpB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;CACN,CAAC;AAKJ,IAAM,aAAa,GAAnB,MAAM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13 @@
import { Message } from './ChatAggregate';
export declare class ChatArchiveAggregate {
id: string;
chatId: string;
archivedMessages: Message[];
archivedAt: Date;
createDate: Date;
chatType: string;
chatName: string | null;
gameId: string | null;
participants: string[];
}
//# sourceMappingURL=ChatArchiveAggregate.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"ChatArchiveAggregate.d.ts","sourceRoot":"","sources":["../../../src/Domain/Chat/ChatArchiveAggregate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,qBACa,oBAAoB;IAE7B,EAAE,EAAG,MAAM,CAAC;IAGZ,MAAM,EAAG,MAAM,CAAC;IAGhB,gBAAgB,EAAG,OAAO,EAAE,CAAC;IAG7B,UAAU,EAAG,IAAI,CAAC;IAGlB,UAAU,EAAG,IAAI,CAAC;IAIlB,QAAQ,EAAG,MAAM,CAAC;IAGlB,QAAQ,EAAG,MAAM,GAAG,IAAI,CAAC;IAGzB,MAAM,EAAG,MAAM,GAAG,IAAI,CAAC;IAGvB,YAAY,EAAG,MAAM,EAAE,CAAC;CAC3B"}
@@ -0,0 +1,56 @@
"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.ChatArchiveAggregate = void 0;
const typeorm_1 = require("typeorm");
let ChatArchiveAggregate = class ChatArchiveAggregate {
};
exports.ChatArchiveAggregate = ChatArchiveAggregate;
__decorate([
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
__metadata("design:type", String)
], ChatArchiveAggregate.prototype, "id", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'uuid' }),
__metadata("design:type", String)
], ChatArchiveAggregate.prototype, "chatId", void 0);
__decorate([
(0, typeorm_1.Column)('json'),
__metadata("design:type", Array)
], ChatArchiveAggregate.prototype, "archivedMessages", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'timestamp' }),
__metadata("design:type", Date)
], ChatArchiveAggregate.prototype, "archivedAt", void 0);
__decorate([
(0, typeorm_1.CreateDateColumn)(),
__metadata("design:type", Date)
], ChatArchiveAggregate.prototype, "createDate", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 50 }),
__metadata("design:type", String)
], ChatArchiveAggregate.prototype, "chatType", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
__metadata("design:type", Object)
], ChatArchiveAggregate.prototype, "chatName", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
__metadata("design:type", Object)
], ChatArchiveAggregate.prototype, "gameId", void 0);
__decorate([
(0, typeorm_1.Column)('uuid', { array: true }),
__metadata("design:type", Array)
], ChatArchiveAggregate.prototype, "participants", void 0);
exports.ChatArchiveAggregate = ChatArchiveAggregate = __decorate([
(0, typeorm_1.Entity)('ChatArchives')
], ChatArchiveAggregate);
//# sourceMappingURL=ChatArchiveAggregate.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ChatArchiveAggregate.js","sourceRoot":"","sources":["../../../src/Domain/Chat/ChatArchiveAggregate.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAmF;AAI5E,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CA4BhC,CAAA;AA5BY,oDAAoB;AAE7B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;gDACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACT;AAGhB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;8DACc;AAG7B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACjB,IAAI;wDAAC;AAGlB;IADC,IAAA,0BAAgB,GAAE;8BACN,IAAI;wDAAC;AAIlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;sDACtB;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAChC;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDAClB;AAGvB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;0DACR;+BA3Bf,oBAAoB;IADhC,IAAA,gBAAM,EAAC,cAAc,CAAC;GACV,oBAAoB,CA4BhC"}
@@ -0,0 +1,27 @@
export declare enum ContactType {
BUG = 0,
PROBLEM = 1,
QUESTION = 2,
SALES = 3,
OTHER = 4
}
export declare enum ContactState {
ACTIVE = 0,
RESOLVED = 1,
SOFT_DELETE = 2
}
export declare class ContactAggregate {
id: string;
name: string;
email: string;
userid: string | null;
type: ContactType;
txt: string;
state: ContactState;
createDate: Date;
updateDate: Date;
adminResponse: string | null;
responseDate: Date | null;
respondedBy: string | null;
}
//# sourceMappingURL=ContactAggregate.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"ContactAggregate.d.ts","sourceRoot":"","sources":["../../../src/Domain/Contact/ContactAggregate.ts"],"names":[],"mappings":"AAEA,oBAAY,WAAW;IACnB,GAAG,IAAI;IACP,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,KAAK,IAAI;IACT,KAAK,IAAI;CACZ;AAED,oBAAY,YAAY;IACpB,MAAM,IAAI;IACV,QAAQ,IAAI;IACZ,WAAW,IAAI;CAClB;AAED,qBACa,gBAAgB;IAEzB,EAAE,EAAG,MAAM,CAAC;IAGZ,IAAI,EAAG,MAAM,CAAC;IAGd,KAAK,EAAG,MAAM,CAAC;IAGf,MAAM,EAAG,MAAM,GAAG,IAAI,CAAC;IAGvB,IAAI,EAAG,WAAW,CAAC;IAGnB,GAAG,EAAG,MAAM,CAAC;IAGb,KAAK,EAAG,YAAY,CAAC;IAGrB,UAAU,EAAG,IAAI,CAAC;IAGlB,UAAU,EAAG,IAAI,CAAC;IAIlB,aAAa,EAAG,MAAM,GAAG,IAAI,CAAC;IAG9B,YAAY,EAAG,IAAI,GAAG,IAAI,CAAC;IAG3B,WAAW,EAAG,MAAM,GAAG,IAAI,CAAC;CAC/B"}
@@ -0,0 +1,82 @@
"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.ContactAggregate = exports.ContactState = exports.ContactType = void 0;
const typeorm_1 = require("typeorm");
var ContactType;
(function (ContactType) {
ContactType[ContactType["BUG"] = 0] = "BUG";
ContactType[ContactType["PROBLEM"] = 1] = "PROBLEM";
ContactType[ContactType["QUESTION"] = 2] = "QUESTION";
ContactType[ContactType["SALES"] = 3] = "SALES";
ContactType[ContactType["OTHER"] = 4] = "OTHER";
})(ContactType || (exports.ContactType = ContactType = {}));
var ContactState;
(function (ContactState) {
ContactState[ContactState["ACTIVE"] = 0] = "ACTIVE";
ContactState[ContactState["RESOLVED"] = 1] = "RESOLVED";
ContactState[ContactState["SOFT_DELETE"] = 2] = "SOFT_DELETE";
})(ContactState || (exports.ContactState = ContactState = {}));
let ContactAggregate = class ContactAggregate {
};
exports.ContactAggregate = ContactAggregate;
__decorate([
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
__metadata("design:type", String)
], ContactAggregate.prototype, "id", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
__metadata("design:type", String)
], ContactAggregate.prototype, "name", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
__metadata("design:type", String)
], ContactAggregate.prototype, "email", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
__metadata("design:type", Object)
], ContactAggregate.prototype, "userid", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'int' }),
__metadata("design:type", Number)
], ContactAggregate.prototype, "type", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'text' }),
__metadata("design:type", String)
], ContactAggregate.prototype, "txt", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'int', default: ContactState.ACTIVE }),
__metadata("design:type", Number)
], ContactAggregate.prototype, "state", void 0);
__decorate([
(0, typeorm_1.CreateDateColumn)(),
__metadata("design:type", Date)
], ContactAggregate.prototype, "createDate", void 0);
__decorate([
(0, typeorm_1.UpdateDateColumn)(),
__metadata("design:type", Date)
], ContactAggregate.prototype, "updateDate", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
__metadata("design:type", Object)
], ContactAggregate.prototype, "adminResponse", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
__metadata("design:type", Object)
], ContactAggregate.prototype, "responseDate", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
__metadata("design:type", Object)
], ContactAggregate.prototype, "respondedBy", void 0);
exports.ContactAggregate = ContactAggregate = __decorate([
(0, typeorm_1.Entity)('Contacts')
], ContactAggregate);
//# sourceMappingURL=ContactAggregate.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ContactAggregate.js","sourceRoot":"","sources":["../../../src/Domain/Contact/ContactAggregate.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAqG;AAErG,IAAY,WAMX;AAND,WAAY,WAAW;IACnB,2CAAO,CAAA;IACP,mDAAW,CAAA;IACX,qDAAY,CAAA;IACZ,+CAAS,CAAA;IACT,+CAAS,CAAA;AACb,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,mDAAU,CAAA;IACV,uDAAY,CAAA;IACZ,6DAAe,CAAA;AACnB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAGM,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAqC5B,CAAA;AArCY,4CAAgB;AAEzB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;4CACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;8CAC3B;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;+CAC1B;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAClB;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;8CACL;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CACZ;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,MAAM,EAAE,CAAC;;+CACjC;AAGrB;IADC,IAAA,0BAAgB,GAAE;8BACN,IAAI;oDAAC;AAGlB;IADC,IAAA,0BAAgB,GAAE;8BACN,IAAI;oDAAC;AAIlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACX;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACnB;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACb;2BApCnB,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,UAAU,CAAC;GACN,gBAAgB,CAqC5B"}
+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;IAC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EAAE,iBAAiB,EAAE,CAAC;;mDACI;wBAjCnC,aAAa;IADzB,IAAA,gBAAM,EAAC,OAAO,CAAC;GACH,aAAa,CAkCzB"}
@@ -0,0 +1,11 @@
import { ChatArchiveAggregate } from '../Chat/ChatArchiveAggregate';
export interface IChatArchiveRepository {
create(archive: Partial<ChatArchiveAggregate>): Promise<ChatArchiveAggregate>;
findAll(): Promise<ChatArchiveAggregate[]>;
findById(id: string): Promise<ChatArchiveAggregate | null>;
findByChatId(chatId: string): Promise<ChatArchiveAggregate[]>;
findByGameId(gameId: string): Promise<ChatArchiveAggregate[]>;
delete(id: string): Promise<any>;
cleanup(olderThanDays: number): Promise<number>;
}
//# sourceMappingURL=IChatArchiveRepository.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"IChatArchiveRepository.d.ts","sourceRoot":"","sources":["../../../src/Domain/IRepository/IChatArchiveRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,MAAM,WAAW,sBAAsB;IACnC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC9E,OAAO,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAAC;IAC3C,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAC3D,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAAC;IAC9D,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAAC;IAC9D,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACjC,OAAO,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACnD"}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IChatArchiveRepository.js.map
@@ -0,0 +1 @@
{"version":3,"file":"IChatArchiveRepository.js","sourceRoot":"","sources":["../../../src/Domain/IRepository/IChatArchiveRepository.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
import { ChatAggregate } from '../Chat/ChatAggregate';
import { ChatArchiveAggregate } from '../Chat/ChatArchiveAggregate';
export interface IChatRepository {
create(chat: Partial<ChatAggregate>): Promise<ChatAggregate>;
findByPage(from: number, to: number): Promise<{
chats: ChatAggregate[];
totalCount: number;
}>;
findByPageIncludingDeleted(from: number, to: number): Promise<{
chats: ChatAggregate[];
totalCount: number;
}>;
findById(id: string): Promise<ChatAggregate | null>;
findByIdIncludingDeleted(id: string): Promise<ChatAggregate | null>;
findByUserId(userId: string): Promise<ChatAggregate[]>;
findByUserIdIncludingDeleted(userId: string): Promise<ChatAggregate[]>;
findByGameId(gameId: string): Promise<ChatAggregate | null>;
findActiveChatsForUser(userId: string): Promise<ChatAggregate[]>;
findInactiveChats(inactivityMinutes: number): Promise<ChatAggregate[]>;
update(id: string, update: Partial<ChatAggregate>): Promise<ChatAggregate | null>;
delete(id: string): Promise<any>;
softDelete(id: string): Promise<ChatAggregate | null>;
archiveChat(chat: ChatAggregate): Promise<ChatArchiveAggregate>;
getArchivedChat(chatId: string): Promise<ChatArchiveAggregate | null>;
restoreFromArchive(chatId: string): Promise<ChatAggregate | null>;
}
//# sourceMappingURL=IChatRepository.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"IChatRepository.d.ts","sourceRoot":"","sources":["../../../src/Domain/IRepository/IChatRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,MAAM,WAAW,eAAe;IAC5B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO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AAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAChE,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IACtE,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;CACrE"}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IChatRepository.js.map
@@ -0,0 +1 @@
{"version":3,"file":"IChatRepository.js","sourceRoot":"","sources":["../../../src/Domain/IRepository/IChatRepository.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
import { ContactAggregate } from '../Contact/ContactAggregate';
export interface IContactRepository {
create(contact: Partial<ContactAggregate>): Promise<ContactAggregate>;
findById(id: string): Promise<ContactAggregate | null>;
findByPage(from: number, to: number): Promise<{
contacts: ContactAggregate[];
totalCount: number;
}>;
findByPageIncludingDeleted(from: number, to: number): Promise<{
contacts: ContactAggregate[];
totalCount: number;
}>;
update(id: string, update: Partial<ContactAggregate>): Promise<ContactAggregate | null>;
delete(id: string): Promise<any>;
softDelete(id: string): Promise<ContactAggregate | null>;
findByIdIncludingDeleted(id: string): Promise<ContactAggregate | null>;
search(searchTerm: string): Promise<ContactAggregate[]>;
searchIncludingDeleted(searchTerm: string): Promise<ContactAggregate[]>;
}
//# sourceMappingURL=IContactRepository.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"IContactRepository.d.ts","sourceRoot":"","sources":["../../../src/Domain/IRepository/IContactRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,WAAW,kBAAkB;IAC/B,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACtE,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACvD,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACpG,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACpH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACxF,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACzD,wBAAwB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACvE,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;IACxD,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;CAC3E"}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IContactRepository.js.map
@@ -0,0 +1 @@
{"version":3,"file":"IContactRepository.js","sourceRoot":"","sources":["../../../src/Domain/IRepository/IContactRepository.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
import { DeckAggregate } from '../Deck/DeckAggregate';
export interface IDeckRepository {
create(deck: Partial<DeckAggregate>): Promise<DeckAggregate>;
findByPage(from: number, to: number): Promise<{
decks: DeckAggregate[];
totalCount: number;
}>;
findByPageIncludingDeleted(from: number, to: number): Promise<{
decks: DeckAggregate[];
totalCount: number;
}>;
findById(id: string): Promise<DeckAggregate | null>;
findByIdIncludingDeleted(id: string): Promise<DeckAggregate | null>;
search(query: string, limit?: number, offset?: number): Promise<{
decks: DeckAggregate[];
totalCount: number;
}>;
searchIncludingDeleted(query: string, limit?: number, offset?: number): Promise<{
decks: DeckAggregate[];
totalCount: number;
}>;
update(id: string, update: Partial<DeckAggregate>): Promise<DeckAggregate | null>;
delete(id: string): Promise<any>;
softDelete(id: string): Promise<DeckAggregate | null>;
countActiveByUserId(userId: string): Promise<number>;
countOrganizationalByUserId(userId: string): Promise<number>;
findFilteredDecks(userId: string, userOrgId?: string | null, isAdmin?: boolean, from?: number, to?: number): Promise<{
decks: DeckAggregate[];
totalCount: number;
}>;
}
//# sourceMappingURL=IDeckRepository.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"IDeckRepository.d.ts","sourceRoot":"","sources":["../../../src/Domain/IRepository/IDeckRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,WAAW,eAAe;IAC5B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAC7D,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,aAAa,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9F,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,aAAa,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9G,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC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
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IDeckRepository.js.map
@@ -0,0 +1 @@
{"version":3,"file":"IDeckRepository.js","sourceRoot":"","sources":["../../../src/Domain/IRepository/IDeckRepository.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
import { OrganizationAggregate } from '../Organization/OrganizationAggregate';
export interface IOrganizationRepository {
create(org: Partial<OrganizationAggregate>): Promise<OrganizationAggregate>;
findByPage(from: number, to: number): Promise<{
organizations: OrganizationAggregate[];
totalCount: number;
}>;
findByPageIncludingDeleted(from: number, to: number): Promise<{
organizations: OrganizationAggregate[];
totalCount: number;
}>;
findById(id: string): Promise<OrganizationAggregate | null>;
findByIdIncludingDeleted(id: string): Promise<OrganizationAggregate | null>;
search(query: string, limit?: number, offset?: number): Promise<{
organizations: OrganizationAggregate[];
totalCount: number;
}>;
searchIncludingDeleted(query: string, limit?: number, offset?: number): Promise<{
organizations: OrganizationAggregate[];
totalCount: number;
}>;
update(id: string, update: Partial<OrganizationAggregate>): Promise<OrganizationAggregate | null>;
delete(id: string): Promise<any>;
softDelete(id: string): Promise<OrganizationAggregate | null>;
}
//# sourceMappingURL=IOrganizationRepository.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"IOrganizationRepository.d.ts","sourceRoot":"","sources":["../../../src/Domain/IRepository/IOrganizationRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,MAAM,WAAW,uBAAuB;IACpC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC5E,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,aAAa,EAAE,qBAAqB,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9G,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,aAAa,EAAE,qBAAqB,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9H,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;IAC5D,wBAAwB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;IAC5E,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,aAAa,EAAE,qBAAqB,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAChI,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,aAAa,EAAE,qBAAqB,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAChJ,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;IAClG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;CACjE"}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IOrganizationRepository.js.map
@@ -0,0 +1 @@
{"version":3,"file":"IOrganizationRepository.js","sourceRoot":"","sources":["../../../src/Domain/IRepository/IOrganizationRepository.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
import { UserAggregate } from '../User/UserAggregate';
export interface IUserRepository {
create(user: Partial<UserAggregate>): Promise<UserAggregate>;
findByPage(from: number, to: number): Promise<{
users: UserAggregate[];
totalCount: number;
}>;
findByPageIncludingDeleted(from: number, to: number): Promise<{
users: UserAggregate[];
totalCount: number;
}>;
findById(id: string): Promise<UserAggregate | null>;
findByIdIncludingDeleted(id: string): Promise<UserAggregate | null>;
findByUsername(username: string): Promise<UserAggregate | null>;
findByEmail(email: string): Promise<UserAggregate | null>;
findByToken(token: string): Promise<UserAggregate | null>;
search(query: string, limit?: number, offset?: number): Promise<{
users: UserAggregate[];
totalCount: number;
}>;
searchIncludingDeleted(query: string, limit?: number, offset?: number): Promise<{
users: UserAggregate[];
totalCount: number;
}>;
update(id: string, update: Partial<UserAggregate>): Promise<UserAggregate | null>;
delete(id: string): Promise<any>;
softDelete(id: string): Promise<UserAggregate | null>;
deactivate(id: string): Promise<UserAggregate | null>;
}
//# sourceMappingURL=IUserRepository.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"IUserRepository.d.ts","sourceRoot":"","sources":["../../../src/Domain/IRepository/IUserRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,WAAW,eAAe;IAC5B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAC7D,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,aAAa,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9F,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,aAAa,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAA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
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IUserRepository.js.map
@@ -0,0 +1 @@
{"version":3,"file":"IUserRepository.js","sourceRoot":"","sources":["../../../src/Domain/IRepository/IUserRepository.ts"],"names":[],"mappings":""}
@@ -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,gBAA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ETE = 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;IACpB,iEAAoB,CAAA;IACpB,uDAAe,CAAA;IACf,uDAAe,CAAA;IACf,2CAAS,CAAA;AACb,CAAC,EAPW,SAAS,yBAAT,SAAS,QAOpB;AAGM,IAAM,aAAa,GAAnB,MAAM,aAAa;CAgDzB,CAAA;AAhDY,sCAAa;AAEtB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;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