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,4 @@
export interface GetContactByIdQuery {
id: string;
}
//# sourceMappingURL=GetContactByIdQuery.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"GetContactByIdQuery.d.ts","sourceRoot":"","sources":["../../../../src/Application/Contact/queries/GetContactByIdQuery.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;CACZ"}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=GetContactByIdQuery.js.map
@@ -0,0 +1 @@
{"version":3,"file":"GetContactByIdQuery.js","sourceRoot":"","sources":["../../../../src/Application/Contact/queries/GetContactByIdQuery.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
import { IContactRepository } from '../../../Domain/IRepository/IContactRepository';
import { GetContactByIdQuery } from './GetContactByIdQuery';
import { DetailContactDto } from '../../DTOs/ContactDto';
export declare class GetContactByIdQueryHandler {
private readonly contactRepo;
constructor(contactRepo: IContactRepository);
execute(query: GetContactByIdQuery): Promise<DetailContactDto | null>;
}
//# sourceMappingURL=GetContactByIdQueryHandler.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"GetContactByIdQueryHandler.d.ts","sourceRoot":"","sources":["../../../../src/Application/Contact/queries/GetContactByIdQueryHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzD,qBAAa,0BAA0B;IACzB,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,kBAAkB;IAEtD,OAAO,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;CAO5E"}
@@ -0,0 +1,18 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetContactByIdQueryHandler = void 0;
const ContactMapper_1 = require("../../DTOs/Mappers/ContactMapper");
class GetContactByIdQueryHandler {
constructor(contactRepo) {
this.contactRepo = contactRepo;
}
async execute(query) {
const contact = await this.contactRepo.findById(query.id);
if (!contact) {
return null;
}
return ContactMapper_1.ContactMapper.toDetailDto(contact);
}
}
exports.GetContactByIdQueryHandler = GetContactByIdQueryHandler;
//# sourceMappingURL=GetContactByIdQueryHandler.js.map
@@ -0,0 +1 @@
{"version":3,"file":"GetContactByIdQueryHandler.js","sourceRoot":"","sources":["../../../../src/Application/Contact/queries/GetContactByIdQueryHandler.ts"],"names":[],"mappings":";;;AAGA,oEAAiE;AAEjE,MAAa,0BAA0B;IACrC,YAA6B,WAA+B;QAA/B,gBAAW,GAAX,WAAW,CAAoB;IAAG,CAAC;IAEhE,KAAK,CAAC,OAAO,CAAC,KAA0B;QACtC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAC1D,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,6BAAa,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CACF;AAVD,gEAUC"}
@@ -0,0 +1,5 @@
export interface GetContactsByPageQuery {
from: number;
to: number;
}
//# sourceMappingURL=GetContactsByPageQuery.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"GetContactsByPageQuery.d.ts","sourceRoot":"","sources":["../../../../src/Application/Contact/queries/GetContactsByPageQuery.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ"}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=GetContactsByPageQuery.js.map
@@ -0,0 +1 @@
{"version":3,"file":"GetContactsByPageQuery.js","sourceRoot":"","sources":["../../../../src/Application/Contact/queries/GetContactsByPageQuery.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
import { IContactRepository } from '../../../Domain/IRepository/IContactRepository';
import { GetContactsByPageQuery } from './GetContactsByPageQuery';
import { ContactPageDto } from '../../DTOs/ContactDto';
export declare class GetContactsByPageQueryHandler {
private readonly contactRepo;
constructor(contactRepo: IContactRepository);
execute(query: GetContactsByPageQuery): Promise<ContactPageDto>;
}
//# sourceMappingURL=GetContactsByPageQueryHandler.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"GetContactsByPageQueryHandler.d.ts","sourceRoot":"","sources":["../../../../src/Application/Contact/queries/GetContactsByPageQueryHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD,qBAAa,6BAA6B;IAC5B,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,kBAAkB;IAEtD,OAAO,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,cAAc,CAAC;CAStE"}
@@ -0,0 +1,20 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetContactsByPageQueryHandler = void 0;
const ContactMapper_1 = require("../../DTOs/Mappers/ContactMapper");
class GetContactsByPageQueryHandler {
constructor(contactRepo) {
this.contactRepo = contactRepo;
}
async execute(query) {
const result = await this.contactRepo.findByPage(query.from, query.to);
return {
contacts: ContactMapper_1.ContactMapper.toShortDtoList(result.contacts),
totalCount: result.totalCount,
from: query.from,
to: query.to,
};
}
}
exports.GetContactsByPageQueryHandler = GetContactsByPageQueryHandler;
//# sourceMappingURL=GetContactsByPageQueryHandler.js.map
@@ -0,0 +1 @@
{"version":3,"file":"GetContactsByPageQueryHandler.js","sourceRoot":"","sources":["../../../../src/Application/Contact/queries/GetContactsByPageQueryHandler.ts"],"names":[],"mappings":";;;AAGA,oEAAiE;AAEjE,MAAa,6BAA6B;IACxC,YAA6B,WAA+B;QAA/B,gBAAW,GAAX,WAAW,CAAoB;IAAG,CAAC;IAEhE,KAAK,CAAC,OAAO,CAAC,KAA6B;QACzC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;QACvE,OAAO;YACL,QAAQ,EAAE,6BAAa,CAAC,cAAc,CAAC,MAAM,CAAC,QAAQ,CAAC;YACvD,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,EAAE,EAAE,KAAK,CAAC,EAAE;SACb,CAAC;IACJ,CAAC;CACF;AAZD,sEAYC"}