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
+24
View File
@@ -0,0 +1,24 @@
export interface CreateChatDto {
users: string[];
messages: import('../../Domain/Chat/ChatAggregate').Message[];
state?: number;
}
export interface UpdateChatDto {
id: string;
users?: string[];
messages?: import('../../Domain/Chat/ChatAggregate').Message[];
state?: number;
}
export interface ShortChatDto {
id: string;
userCount: number;
state: number;
}
export interface DetailChatDto {
id: string;
users: string[];
messages: import('../../Domain/Chat/ChatAggregate').Message[];
updateDate: Date;
state: number;
}
//# sourceMappingURL=ChatDto.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"ChatDto.d.ts","sourceRoot":"","sources":["../../../src/Application/DTOs/ChatDto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,OAAO,iCAAiC,EAAE,OAAO,EAAE,CAAC;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,iCAAiC,EAAE,OAAO,EAAE,CAAC;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,OAAO,iCAAiC,EAAE,OAAO,EAAE,CAAC;IAC9D,UAAU,EAAE,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf"}
+3
View File
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ChatDto.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ChatDto.js","sourceRoot":"","sources":["../../../src/Application/DTOs/ChatDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
import { ContactType } from '../../Domain/Contact/ContactAggregate';
export interface CreateContactDto {
name: string;
email: string;
userid?: string;
type: ContactType;
txt: string;
}
export interface UpdateContactDto {
id: string;
adminResponse?: string;
state?: number;
respondedBy?: string;
}
export interface ShortContactDto {
id: string;
name: string;
email: string;
type: ContactType;
createDate: Date;
state: number;
}
export interface DetailContactDto {
id: string;
name: string;
email: string;
userid: string | null;
type: ContactType;
txt: string;
state: number;
createDate: Date;
updateDate: Date;
adminResponse: string | null;
responseDate: Date | null;
respondedBy: string | null;
}
export interface ContactPageDto {
contacts: ShortContactDto[];
totalCount: number;
from: number;
to: number;
}
//# sourceMappingURL=ContactDto.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"ContactDto.d.ts","sourceRoot":"","sources":["../../../src/Application/DTOs/ContactDto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,WAAW,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,WAAW,CAAC;IAClB,UAAU,EAAE,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,WAAW,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;IACjB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ"}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ContactDto.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ContactDto.js","sourceRoot":"","sources":["../../../src/Application/DTOs/ContactDto.ts"],"names":[],"mappings":""}
+27
View File
@@ -0,0 +1,27 @@
export interface CreateDeckDto {
name: string;
description?: string;
}
export interface UpdateDeckDto {
id: string;
name?: string;
description?: string;
}
export interface ShortDeckDto {
id: string;
name: string;
type: number;
playedNumber: number;
ctype: number;
}
export interface DetailDeckDto {
id: string;
name: string;
type: number;
userid: string;
creationdate: Date;
cards: any[];
playedNumber: number;
ctype: number;
}
//# sourceMappingURL=DeckDto.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"DeckDto.d.ts","sourceRoot":"","sources":["../../../src/Application/DTOs/DeckDto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,IAAI,CAAC;IACnB,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf"}
+3
View File
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=DeckDto.js.map
@@ -0,0 +1 @@
{"version":3,"file":"DeckDto.js","sourceRoot":"","sources":["../../../src/Application/DTOs/DeckDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
export declare abstract class BaseMapper<TEntity, TShortDto, TDetailDto> {
abstract toShortDto(entity: TEntity): TShortDto;
abstract toDetailDto(entity: TEntity): TDetailDto;
toShortDtoList(entities: TEntity[]): TShortDto[];
toDetailDtoList(entities: TEntity[]): TDetailDto[];
static toShortDtoListStatic<T, TDto>(entities: T[], mapperFn: (entity: T) => TDto): TDto[];
}
//# sourceMappingURL=BaseMapper.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"BaseMapper.d.ts","sourceRoot":"","sources":["../../../../src/Application/DTOs/Mappers/BaseMapper.ts"],"names":[],"mappings":"AAAA,8BAAsB,UAAU,CAAC,OAAO,EAAE,SAAS,EAAE,UAAU;IAC7D,QAAQ,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS;IAC/C,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU;IAEjD,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,SAAS,EAAE;IAIhD,eAAe,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,EAAE;IAIlD,MAAM,CAAC,oBAAoB,CAAC,CAAC,EAAE,IAAI,EACjC,QAAQ,EAAE,CAAC,EAAE,EACb,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,GAC5B,IAAI,EAAE;CAGV"}
@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseMapper = void 0;
class BaseMapper {
toShortDtoList(entities) {
return entities.map(entity => this.toShortDto(entity));
}
toDetailDtoList(entities) {
return entities.map(entity => this.toDetailDto(entity));
}
static toShortDtoListStatic(entities, mapperFn) {
return entities.map(mapperFn);
}
}
exports.BaseMapper = BaseMapper;
//# sourceMappingURL=BaseMapper.js.map
@@ -0,0 +1 @@
{"version":3,"file":"BaseMapper.js","sourceRoot":"","sources":["../../../../src/Application/DTOs/Mappers/BaseMapper.ts"],"names":[],"mappings":";;;AAAA,MAAsB,UAAU;IAI9B,cAAc,CAAC,QAAmB;QAChC,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;IACzD,CAAC;IAED,eAAe,CAAC,QAAmB;QACjC,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1D,CAAC;IAED,MAAM,CAAC,oBAAoB,CACzB,QAAa,EACb,QAA6B;QAE7B,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;CACF;AAlBD,gCAkBC"}
@@ -0,0 +1,8 @@
import { ChatAggregate } from '../../../Domain/Chat/ChatAggregate';
import { ShortChatDto, DetailChatDto } from '../ChatDto';
export declare class ChatMapper {
static toShortDto(chat: ChatAggregate): ShortChatDto;
static toDetailDto(chat: ChatAggregate): DetailChatDto;
static toShortDtoList(chats: ChatAggregate[]): ShortChatDto[];
}
//# sourceMappingURL=ChatMapper.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"ChatMapper.d.ts","sourceRoot":"","sources":["../../../../src/Application/DTOs/Mappers/ChatMapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEzD,qBAAa,UAAU;IACrB,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,aAAa,GAAG,YAAY;IAQpD,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,aAAa,GAAG,aAAa;IAUtD,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,YAAY,EAAE;CAG9D"}
@@ -0,0 +1,26 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChatMapper = void 0;
class ChatMapper {
static toShortDto(chat) {
return {
id: chat.id,
userCount: chat.users?.length ?? 0,
state: chat.state,
};
}
static toDetailDto(chat) {
return {
id: chat.id,
users: chat.users ?? [],
messages: chat.messages,
updateDate: chat.updateDate,
state: chat.state,
};
}
static toShortDtoList(chats) {
return chats.map(this.toShortDto);
}
}
exports.ChatMapper = ChatMapper;
//# sourceMappingURL=ChatMapper.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ChatMapper.js","sourceRoot":"","sources":["../../../../src/Application/DTOs/Mappers/ChatMapper.ts"],"names":[],"mappings":";;;AAGA,MAAa,UAAU;IACrB,MAAM,CAAC,UAAU,CAAC,IAAmB;QACnC,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,SAAS,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC;YAClC,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,IAAmB;QACpC,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,EAAE;YACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,KAAsB;QAC1C,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;CACF;AAtBD,gCAsBC"}
@@ -0,0 +1,8 @@
import { ContactAggregate } from '../../../Domain/Contact/ContactAggregate';
import { ShortContactDto, DetailContactDto } from '../ContactDto';
export declare class ContactMapper {
static toShortDto(contact: ContactAggregate): ShortContactDto;
static toDetailDto(contact: ContactAggregate): DetailContactDto;
static toShortDtoList(contacts: ContactAggregate[]): ShortContactDto[];
}
//# sourceMappingURL=ContactMapper.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"ContactMapper.d.ts","sourceRoot":"","sources":["../../../../src/Application/DTOs/Mappers/ContactMapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAsC,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtG,qBAAa,aAAa;IACxB,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,gBAAgB,GAAG,eAAe;IAW7D,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,gBAAgB;IAiB/D,MAAM,CAAC,cAAc,CAAC,QAAQ,EAAE,gBAAgB,EAAE,GAAG,eAAe,EAAE;CAGvE"}
@@ -0,0 +1,36 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ContactMapper = void 0;
class ContactMapper {
static toShortDto(contact) {
return {
id: contact.id,
name: contact.name,
email: contact.email,
type: contact.type,
createDate: contact.createDate,
state: contact.state,
};
}
static toDetailDto(contact) {
return {
id: contact.id,
name: contact.name,
email: contact.email,
userid: contact.userid,
type: contact.type,
txt: contact.txt,
state: contact.state,
createDate: contact.createDate,
updateDate: contact.updateDate,
adminResponse: contact.adminResponse,
responseDate: contact.responseDate,
respondedBy: contact.respondedBy,
};
}
static toShortDtoList(contacts) {
return contacts.map(this.toShortDto);
}
}
exports.ContactMapper = ContactMapper;
//# sourceMappingURL=ContactMapper.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ContactMapper.js","sourceRoot":"","sources":["../../../../src/Application/DTOs/Mappers/ContactMapper.ts"],"names":[],"mappings":";;;AAGA,MAAa,aAAa;IACxB,MAAM,CAAC,UAAU,CAAC,OAAyB;QACzC,OAAO;YACL,EAAE,EAAE,OAAO,CAAC,EAAE;YACd,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,KAAK,EAAE,OAAO,CAAC,KAAK;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,OAAyB;QAC1C,OAAO;YACL,EAAE,EAAE,OAAO,CAAC,EAAE;YACd,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,aAAa,EAAE,OAAO,CAAC,aAAa;YACpC,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,WAAW,EAAE,OAAO,CAAC,WAAW;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,QAA4B;QAChD,OAAO,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACvC,CAAC;CACF;AAhCD,sCAgCC"}
@@ -0,0 +1,8 @@
import { DeckAggregate } from '../../../Domain/Deck/DeckAggregate';
import { ShortDeckDto, DetailDeckDto } from '../DeckDto';
export declare class DeckMapper {
static toShortDto(deck: DeckAggregate): ShortDeckDto;
static toDetailDto(deck: DeckAggregate): DetailDeckDto;
static toShortDtoList(decks: DeckAggregate[]): ShortDeckDto[];
}
//# sourceMappingURL=DeckMapper.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"DeckMapper.d.ts","sourceRoot":"","sources":["../../../../src/Application/DTOs/Mappers/DeckMapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAgC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEvF,qBAAa,UAAU;IACrB,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,aAAa,GAAG,YAAY;IAUpD,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,aAAa,GAAG,aAAa;IAatD,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,YAAY,EAAE;CAG9D"}
@@ -0,0 +1,31 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeckMapper = void 0;
class DeckMapper {
static toShortDto(deck) {
return {
id: deck.id,
name: deck.name,
type: deck.type,
playedNumber: deck.playedNumber,
ctype: deck.ctype,
};
}
static toDetailDto(deck) {
return {
id: deck.id,
name: deck.name,
type: deck.type,
userid: deck.userid,
creationdate: deck.creationdate,
cards: deck.cards,
playedNumber: deck.playedNumber,
ctype: deck.ctype,
};
}
static toShortDtoList(decks) {
return decks.map(this.toShortDto);
}
}
exports.DeckMapper = DeckMapper;
//# sourceMappingURL=DeckMapper.js.map
@@ -0,0 +1 @@
{"version":3,"file":"DeckMapper.js","sourceRoot":"","sources":["../../../../src/Application/DTOs/Mappers/DeckMapper.ts"],"names":[],"mappings":";;;AAGA,MAAa,UAAU;IACrB,MAAM,CAAC,UAAU,CAAC,IAAmB;QACnC,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,IAAmB;QACpC,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,KAAsB;QAC1C,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;CACF;AA3BD,gCA2BC"}
@@ -0,0 +1,8 @@
import { OrganizationAggregate } from '../../../Domain/Organization/OrganizationAggregate';
import { ShortOrganizationDto, DetailOrganizationDto } from '../OrganizationDto';
export declare class OrganizationMapper {
static toShortDto(org: OrganizationAggregate): ShortOrganizationDto;
static toDetailDto(org: OrganizationAggregate): DetailOrganizationDto;
static toShortDtoList(orgs: OrganizationAggregate[]): ShortOrganizationDto[];
}
//# sourceMappingURL=OrganizationMapper.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"OrganizationMapper.d.ts","sourceRoot":"","sources":["../../../../src/Application/DTOs/Mappers/OrganizationMapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAC3F,OAAO,EAAgD,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE/H,qBAAa,kBAAkB;IAC7B,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,qBAAqB,GAAG,oBAAoB;IAUnE,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,qBAAqB,GAAG,qBAAqB;IAkBrE,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,qBAAqB,EAAE,GAAG,oBAAoB,EAAE;CAG7E"}
@@ -0,0 +1,36 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OrganizationMapper = void 0;
class OrganizationMapper {
static toShortDto(org) {
return {
id: org.id,
name: org.name,
state: org.state,
userinorg: org.userinorg,
maxOrganizationalDecks: org.maxOrganizationalDecks,
};
}
static toDetailDto(org) {
return {
id: org.id,
name: org.name,
contactfname: org.contactfname,
contactlname: org.contactlname,
contactphone: org.contactphone,
contactemail: org.contactemail,
state: org.state,
regdate: org.regdate,
updatedate: org.updatedate,
url: org.url,
userinorg: org.userinorg,
maxOrganizationalDecks: org.maxOrganizationalDecks,
users: org.users?.map(u => u.id) ?? [],
};
}
static toShortDtoList(orgs) {
return orgs.map(this.toShortDto);
}
}
exports.OrganizationMapper = OrganizationMapper;
//# sourceMappingURL=OrganizationMapper.js.map
@@ -0,0 +1 @@
{"version":3,"file":"OrganizationMapper.js","sourceRoot":"","sources":["../../../../src/Application/DTOs/Mappers/OrganizationMapper.ts"],"names":[],"mappings":";;;AAGA,MAAa,kBAAkB;IAC7B,MAAM,CAAC,UAAU,CAAC,GAA0B;QAC1C,OAAO;YACL,EAAE,EAAE,GAAG,CAAC,EAAE;YACV,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,KAAK,EAAE,GAAG,CAAC,KAAK;YAChB,SAAS,EAAE,GAAG,CAAC,SAAS;YACxB,sBAAsB,EAAE,GAAG,CAAC,sBAAsB;SACnD,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,GAA0B;QAC3C,OAAO;YACL,EAAE,EAAE,GAAG,CAAC,EAAE;YACV,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,YAAY,EAAE,GAAG,CAAC,YAAY;YAC9B,YAAY,EAAE,GAAG,CAAC,YAAY;YAC9B,YAAY,EAAE,GAAG,CAAC,YAAY;YAC9B,YAAY,EAAE,GAAG,CAAC,YAAY;YAC9B,KAAK,EAAE,GAAG,CAAC,KAAK;YAChB,OAAO,EAAE,GAAG,CAAC,OAAO;YACpB,UAAU,EAAE,GAAG,CAAC,UAAU;YAC1B,GAAG,EAAE,GAAG,CAAC,GAAG;YACZ,SAAS,EAAE,GAAG,CAAC,SAAS;YACxB,sBAAsB,EAAE,GAAG,CAAC,sBAAsB;YAClD,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE;SACvC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,IAA6B;QACjD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACnC,CAAC;CACF;AAhCD,gDAgCC"}
@@ -0,0 +1,8 @@
import { UserAggregate } from '../../../Domain/User/UserAggregate';
import { ShortUserDto, DetailUserDto } from '../UserDto';
export declare class UserMapper {
static toShortDto(user: UserAggregate): ShortUserDto;
static toDetailDto(user: UserAggregate): DetailUserDto;
static toShortDtoList(users: UserAggregate[]): ShortUserDto[];
}
//# sourceMappingURL=UserMapper.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"UserMapper.d.ts","sourceRoot":"","sources":["../../../../src/Application/DTOs/Mappers/UserMapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAa,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAgC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGvF,qBAAa,UAAU;IACrB,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,aAAa,GAAG,YAAY;IASpD,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,aAAa,GAAG,aAAa;IAetD,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,YAAY,EAAE;CAG9D"}
@@ -0,0 +1,34 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UserMapper = void 0;
const UserAggregate_1 = require("../../../Domain/User/UserAggregate");
const BaseMapper_1 = require("./BaseMapper");
class UserMapper {
static toShortDto(user) {
return {
id: user.id,
username: user.username,
state: user.state,
authLevel: (user.state === UserAggregate_1.UserState.ADMIN ? 1 : 0),
};
}
static toDetailDto(user) {
return {
id: user.id,
orgid: user.orgid,
username: user.username,
email: user.email,
fname: user.fname,
lname: user.lname,
code: user.token,
type: user.type,
phone: user.phone,
state: user.state,
};
}
static toShortDtoList(users) {
return BaseMapper_1.BaseMapper.toShortDtoListStatic(users, UserMapper.toShortDto);
}
}
exports.UserMapper = UserMapper;
//# sourceMappingURL=UserMapper.js.map
@@ -0,0 +1 @@
{"version":3,"file":"UserMapper.js","sourceRoot":"","sources":["../../../../src/Application/DTOs/Mappers/UserMapper.ts"],"names":[],"mappings":";;;AAAA,sEAA8E;AAE9E,6CAA0C;AAE1C,MAAa,UAAU;IACrB,MAAM,CAAC,UAAU,CAAC,IAAmB;QACnC,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS,EAAE,CAAC,IAAI,CAAC,KAAK,KAAK,yBAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAU;SAC7D,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,IAAmB;QACpC,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,IAAI,EAAE,IAAI,CAAC,KAAK;YAChB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,KAAsB;QAC1C,OAAO,uBAAU,CAAC,oBAAoB,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;IACvE,CAAC;CACF;AA5BD,gCA4BC"}
@@ -0,0 +1,44 @@
export interface CreateOrganizationDto {
name: string;
description?: string;
maxOrganizationalDecks?: number | null;
}
export interface UpdateOrganizationDto {
id: string;
name?: string;
description?: string;
}
export interface ShortOrganizationDto {
id: string;
name: string;
state: number;
userinorg: number;
maxOrganizationalDecks?: number | null;
}
export interface DetailOrganizationDto {
id: string;
name: string;
contactfname: string;
contactlname: string;
contactphone: string;
contactemail: string;
state: number;
regdate: Date;
updatedate: Date;
url: string | null;
userinorg: number;
maxOrganizationalDecks: number | null;
users: string[];
}
export interface OrganizationLoginUrlDto {
organizationId: string;
organizationName: string;
loginUrl: string;
}
export interface OrganizationAuthCallbackDto {
organizationId: string;
userId: string;
status: 'ok' | 'not_ok';
authToken?: string;
}
//# sourceMappingURL=OrganizationDto.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"OrganizationDto.d.ts","sourceRoot":"","sources":["../../../src/Application/DTOs/OrganizationDto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,IAAI,CAAC;IACd,UAAU,EAAE,IAAI,CAAC;IACjB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,2BAA2B;IAC1C,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,IAAI,GAAG,QAAQ,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=OrganizationDto.js.map
@@ -0,0 +1 @@
{"version":3,"file":"OrganizationDto.js","sourceRoot":"","sources":["../../../src/Application/DTOs/OrganizationDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
export interface SearchQuery {
query: string;
limit?: number;
offset?: number;
}
export interface SearchResult<T> {
results: T[];
totalCount: number;
hasMore: boolean;
searchQuery: string;
searchType: 'users' | 'organizations' | 'decks';
}
//# sourceMappingURL=SearchDto.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"SearchDto.d.ts","sourceRoot":"","sources":["../../../src/Application/DTOs/SearchDto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,GAAG,eAAe,GAAG,OAAO,CAAC;CACjD"}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=SearchDto.js.map
@@ -0,0 +1 @@
{"version":3,"file":"SearchDto.js","sourceRoot":"","sources":["../../../src/Application/DTOs/SearchDto.ts"],"names":[],"mappings":""}
+28
View File
@@ -0,0 +1,28 @@
export interface CreateUserDto {
username: string;
email: string;
}
export interface UpdateUserDto {
id: string;
username?: string;
email?: string;
}
export interface ShortUserDto {
id: string;
username: string;
state: number;
authLevel: 0 | 1;
}
export interface DetailUserDto {
id: string;
orgid: string | null;
username: string;
email: string;
fname: string;
lname: string;
code: string | null;
type: string;
phone: string | null;
state: number;
}
//# sourceMappingURL=UserDto.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"UserDto.d.ts","sourceRoot":"","sources":["../../../src/Application/DTOs/UserDto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf"}
+3
View File
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=UserDto.js.map
@@ -0,0 +1 @@
{"version":3,"file":"UserDto.js","sourceRoot":"","sources":["../../../src/Application/DTOs/UserDto.ts"],"names":[],"mappings":""}