From bd13a775c41e68458c6e089628e6b9a12e0d7617 Mon Sep 17 00:00:00 2001 From: Anton Schegg Date: Sun, 5 Jan 2025 17:55:18 +0100 Subject: [PATCH] member communication --- src/routes/fillfromold.ts | 64 ++++++++++++++++++++++----------------- 1 file changed, 36 insertions(+), 28 deletions(-) diff --git a/src/routes/fillfromold.ts b/src/routes/fillfromold.ts index 7fff06f..80ef6c2 100644 --- a/src/routes/fillfromold.ts +++ b/src/routes/fillfromold.ts @@ -1,41 +1,49 @@ import express from "express"; import knex from "knex"; import moment from "moment"; -import AwardService from "../service/awardService"; -import { CreateAwardCommand, DeleteAwardCommand } from "../command/awardCommand"; -import AwardCommandHandler from "../command/awardCommandHandler"; -import MemberService from "../service/memberService"; -import { CreateMemberCommand, DeleteMemberCommand } from "../command/memberCommand"; -import MemberCommandHandler from "../command/memberCommandHandler"; -import MemberAwardCommandHandler from "../command/memberAwardCommandHandler"; -import { CreateMemberAwardCommand, DeleteMemberAwardCommand } from "../command/memberAwardCommand"; -import MemberAwardService from "../service/memberAwardService"; -import { CreateMembershipStatusCommand, DeleteMembershipStatusCommand } from "../command/membershipStatusCommand"; -import MembershipStatusCommandHandler from "../command/membershipStatusCommandHandler"; -import { CreateExecutivePositionCommand, DeleteExecutivePositionCommand } from "../command/executivePositionCommand"; -import ExecutivePositionCommandHandler from "../command/executivePositionCommandHandler"; -import ExecutivePositionService from "../service/executivePositionService"; -import MembershipStatusService from "../service/membershipStatusService"; +import AwardService from "../service/settings/awardService"; +import { CreateAwardCommand, DeleteAwardCommand } from "../command/settings/award/awardCommand"; +import AwardCommandHandler from "../command/settings/award/awardCommandHandler"; +import MemberService from "../service/club/member/memberService"; +import { CreateMemberCommand, DeleteMemberCommand } from "../command/club/member/memberCommand"; +import MemberCommandHandler from "../command/club/member/memberCommandHandler"; +import MemberAwardCommandHandler from "../command/club/member/memberAwardCommandHandler"; +import { CreateMemberAwardCommand, DeleteMemberAwardCommand } from "../command/club/member/memberAwardCommand"; +import MemberAwardService from "../service/club/member/memberAwardService"; +import CommunicationService from "../service/club/member/communicationService"; +import { CreateCommunicationCommand, DeleteCommunicationCommand } from "../command/club/member/communicationCommand"; +import CommunicationCommandHandler from "../command/club/member/communicationCommandHandler"; +import MembershipService from "../service/club/member/membershipService"; import { CreateMembershipCommand, DeleteMembershipCommand, UpdateMembershipCommand, -} from "../command/membershipCommand"; -import MembershipCommandHandler from "../command/membershipCommandHandler"; -import MembershipService from "../service/membershipService"; +} from "../command/club/member/membershipCommand"; +import MembershipCommandHandler from "../command/club/member/membershipCommandHandler"; +import MemberExecutivePositionService from "../service/club/member/memberExecutivePositionService"; import { CreateMemberExecutivePositionCommand, DeleteMemberExecutivePositionCommand, -} from "../command/memberExecutivePositionCommand"; -import MemberExecutivePositionCommandHandler from "../command/memberExecutivePositionCommandHandler"; -import { CreateCommunicationTypeCommand, DeleteCommunicationTypeCommand } from "../command/communicationTypeCommand"; -import CommunicationTypeService from "../service/communicationTypeService"; -import CommunicationTypeCommandHandler from "../command/communicationTypeCommandHandler"; -import CommunicationService from "../service/communicationService"; -import { CreateCommunicationCommand, DeleteCommunicationCommand } from "../command/communicationCommand"; -import CommunicationCommandHandler from "../command/communicationCommandHandler"; -import MemberExecutivePositionService from "../service/memberExecutivePositionService"; -import { communication } from "../entity/communication"; +} from "../command/club/member/memberExecutivePositionCommand"; +import MemberExecutivePositionCommandHandler from "../command/club/member/memberExecutivePositionCommandHandler"; +import CommunicationTypeService from "../service/settings/communicationTypeService"; +import { + CreateCommunicationTypeCommand, + DeleteCommunicationTypeCommand, +} from "../command/settings/communicationType/communicationTypeCommand"; +import CommunicationTypeCommandHandler from "../command/settings/communicationType/communicationTypeCommandHandler"; +import ExecutivePositionService from "../service/settings/executivePositionService"; +import { + CreateExecutivePositionCommand, + DeleteExecutivePositionCommand, +} from "../command/settings/executivePosition/executivePositionCommand"; +import ExecutivePositionCommandHandler from "../command/settings/executivePosition/executivePositionCommandHandler"; +import MembershipStatusService from "../service/settings/membershipStatusService"; +import { + CreateMembershipStatusCommand, + DeleteMembershipStatusCommand, +} from "../command/settings/membershipStatus/membershipStatusCommand"; +import MembershipStatusCommandHandler from "../command/settings/membershipStatus/membershipStatusCommandHandler"; var router = express.Router({ mergeParams: true });