folder structure
This commit is contained in:
parent
5d3f8ea46a
commit
84e2ec72ac
242 changed files with 635 additions and 635 deletions
|
@ -1,7 +1,7 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { calendar } from "../entity/calendar";
|
||||
import { calendarType } from "../entity/calendarType";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { calendar } from "../../../entity/club/calendar";
|
||||
import { calendarType } from "../../../entity/settings/calendarType";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import { CreateCalendarCommand, DeleteCalendarCommand, UpdateCalendarCommand } from "./calendarCommand";
|
||||
|
||||
export default abstract class CalendarCommandHandler {
|
|
@ -1,8 +1,8 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { communication } from "../entity/communication";
|
||||
import { communicationType } from "../entity/communicationType";
|
||||
import { user } from "../entity/user";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { communication } from "../../../entity/club/member/communication";
|
||||
import { communicationType } from "../../../entity/settings/communicationType";
|
||||
import { user } from "../../../entity/user/user";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import {
|
||||
CreateCommunicationCommand,
|
||||
DeleteCommunicationCommand,
|
|
@ -1,8 +1,8 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { award } from "../entity/award";
|
||||
import { member } from "../entity/member";
|
||||
import { memberAwards } from "../entity/memberAwards";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { award } from "../../../entity/settings/award";
|
||||
import { member } from "../../../entity/club/member/member";
|
||||
import { memberAwards } from "../../../entity/club/member/memberAwards";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import { CreateMemberAwardCommand, DeleteMemberAwardCommand, UpdateMemberAwardCommand } from "./memberAwardCommand";
|
||||
|
||||
export default abstract class MemberAwardCommandHandler {
|
|
@ -1,4 +1,4 @@
|
|||
import { Salutation } from "../enums/salutation";
|
||||
import { Salutation } from "../../../enums/salutation";
|
||||
|
||||
export interface CreateMemberCommand {
|
||||
salutation: Salutation;
|
|
@ -1,8 +1,8 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { communication } from "../entity/communication";
|
||||
import { member } from "../entity/member";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import CommunicationService from "../service/communicationService";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { communication } from "../../../entity/club/member/communication";
|
||||
import { member } from "../../../entity/club/member/member";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import CommunicationService from "../../../service/club/member/communicationService";
|
||||
import {
|
||||
CreateMemberCommand,
|
||||
DeleteMemberCommand,
|
|
@ -1,8 +1,8 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { executivePosition } from "../entity/executivePosition";
|
||||
import { member } from "../entity/member";
|
||||
import { memberExecutivePositions } from "../entity/memberExecutivePositions";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { executivePosition } from "../../../entity/settings/executivePosition";
|
||||
import { member } from "../../../entity/club/member/member";
|
||||
import { memberExecutivePositions } from "../../../entity/club/member/memberExecutivePositions";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import {
|
||||
CreateMemberExecutivePositionCommand,
|
||||
DeleteMemberExecutivePositionCommand,
|
|
@ -1,13 +1,13 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { qualification } from "../entity/qualification";
|
||||
import { memberQualifications } from "../entity/memberQualifications";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { qualification } from "../../../entity/settings/qualification";
|
||||
import { memberQualifications } from "../../../entity/club/member/memberQualifications";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import {
|
||||
CreateMemberQualificationCommand,
|
||||
DeleteMemberQualificationCommand,
|
||||
UpdateMemberQualificationCommand,
|
||||
} from "./memberQualificationCommand";
|
||||
import { member } from "../entity/member";
|
||||
import { member } from "../../../entity/club/member/member";
|
||||
|
||||
export default abstract class MemberQualificationCommandHandler {
|
||||
/**
|
|
@ -1,8 +1,8 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { member } from "../entity/member";
|
||||
import { membership } from "../entity/membership";
|
||||
import { membershipStatus } from "../entity/membershipStatus";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { member } from "../../../entity/club/member/member";
|
||||
import { membership } from "../../../entity/club/member/membership";
|
||||
import { membershipStatus } from "../../../entity/settings/membershipStatus";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import { CreateMembershipCommand, DeleteMembershipCommand, UpdateMembershipCommand } from "./membershipCommand";
|
||||
|
||||
export default abstract class MembershipCommandHandler {
|
|
@ -1,6 +1,6 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { newsletter } from "../entity/newsletter";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { newsletter } from "../../../entity/club/newsletter/newsletter";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import { CreateNewsletterCommand, SendNewsletterCommand, SynchronizeNewsletterCommand } from "./newsletterCommand";
|
||||
|
||||
export default abstract class NewsletterCommandHandler {
|
|
@ -1,9 +1,9 @@
|
|||
import { DeleteResult, EntityManager, InsertResult, UpdateResult } from "typeorm";
|
||||
import { dataSource } from "../data-source";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import NewsletterDatesService from "../service/newsletterDatesService";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import NewsletterDatesService from "../../../service/club/newsletter/newsletterDatesService";
|
||||
import { NewsletterDateCommand, SynchronizeNewsletterDatesCommand } from "./newsletterDatesCommand";
|
||||
import { newsletterDates } from "../entity/newsletterDates";
|
||||
import { newsletterDates } from "../../../entity/club/newsletter/newsletterDates";
|
||||
|
||||
export default abstract class NewsletterDatesCommandHandler {
|
||||
/**
|
|
@ -1,9 +1,9 @@
|
|||
import { DeleteResult, EntityManager, InsertResult, UpdateResult } from "typeorm";
|
||||
import { dataSource } from "../data-source";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import NewsletterRecipientsService from "../service/newsletterRecipientsService";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import NewsletterRecipientsService from "../../../service/club/newsletter/newsletterRecipientsService";
|
||||
import { SynchronizeNewsletterRecipientsCommand } from "./newsletterRecipientsCommand";
|
||||
import { newsletterRecipients } from "../entity/newsletterRecipients";
|
||||
import { newsletterRecipients } from "../../../entity/club/newsletter/newsletterRecipients";
|
||||
|
||||
export default abstract class NewsletterRecipientsCommandHandler {
|
||||
/**
|
|
@ -1,6 +1,6 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { protocolAgenda } from "../entity/protocolAgenda";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { protocolAgenda } from "../../../entity/club/protocol/protocolAgenda";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import { SynchronizeProtocolAgendaCommand } from "./protocolAgendaCommand";
|
||||
|
||||
export default abstract class ProtocolAgendaCommandHandler {
|
|
@ -1,6 +1,6 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { protocol } from "../entity/protocol";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { protocol } from "../../../entity/club/protocol/protocol";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import { CreateProtocolCommand, SynchronizeProtocolCommand } from "./protocolCommand";
|
||||
|
||||
export default abstract class ProtocolCommandHandler {
|
|
@ -1,6 +1,6 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { protocolDecision } from "../entity/protocolDecision";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { protocolDecision } from "../../../entity/club/protocol/protocolDecision";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import { SynchronizeProtocolDecisionCommand } from "./protocolDecisionCommand";
|
||||
|
||||
export default abstract class ProtocolDecisionCommandHandler {
|
|
@ -1,8 +1,8 @@
|
|||
import { DeleteResult, EntityManager, InsertResult, UpdateResult } from "typeorm";
|
||||
import { dataSource } from "../data-source";
|
||||
import { protocolPresence } from "../entity/protocolPresence";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import ProtocolPresenceService from "../service/protocolPrecenseService";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { protocolPresence } from "../../../entity/club/protocol/protocolPresence";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import ProtocolPresenceService from "../../../service/club/protocol/protocolPrecenseService";
|
||||
import { ProtocolPresenceCommand, SynchronizeProtocolPresenceCommand } from "./protocolPresenceCommand";
|
||||
|
||||
export default abstract class ProtocolPresenceCommandHandler {
|
|
@ -1,6 +1,6 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { protocolPrintout } from "../entity/protocolPrintout";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { protocolPrintout } from "../../../entity/club/protocol/protocolPrintout";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import { CreateProtocolPrintoutCommand } from "./protocolPrintoutCommand";
|
||||
|
||||
export default abstract class ProtocolPrintoutCommandHandler {
|
|
@ -1,6 +1,6 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { protocolVoting } from "../entity/protocolVoting";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { protocolVoting } from "../../../entity/club/protocol/protocolVoting";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import { SynchronizeProtocolVotingCommand } from "./protocolVotingCommand";
|
||||
|
||||
export default abstract class ProtocolVotingCommandHandler {
|
|
@ -4,7 +4,7 @@ import { REFRESH_EXPIRATION } from "../env.defaults";
|
|||
import InternalException from "../exceptions/internalException";
|
||||
import { JWTHelper } from "../helpers/jwtHelper";
|
||||
import { StringHelper } from "../helpers/stringHelper";
|
||||
import UserService from "../service/userService";
|
||||
import UserService from "../service/user/userService";
|
||||
import { JWTRefresh } from "../type/jwtTypes";
|
||||
import { CreateRefreshCommand, DeleteRefreshCommand } from "./refreshCommand";
|
||||
import ms from "ms";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { award } from "../entity/award";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { award } from "../../../entity/settings/award";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import { CreateAwardCommand, DeleteAwardCommand, UpdateAwardCommand } from "./awardCommand";
|
||||
|
||||
export default abstract class AwardCommandHandler {
|
|
@ -1,6 +1,6 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { calendarType } from "../entity/calendarType";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { calendarType } from "../../../entity/settings/calendarType";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import { CreateCalendarTypeCommand, DeleteCalendarTypeCommand, UpdateCalendarTypeCommand } from "./calendarTypeCommand";
|
||||
|
||||
export default abstract class CalendarTypeCommandHandler {
|
|
@ -1,4 +1,4 @@
|
|||
import { CommunicationFieldType } from "../type/fieldTypes";
|
||||
import { CommunicationFieldType } from "../../../type/fieldTypes";
|
||||
|
||||
export interface CreateCommunicationTypeCommand {
|
||||
type: string;
|
|
@ -1,6 +1,6 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { communicationType } from "../entity/communicationType";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { communicationType } from "../../../entity/settings/communicationType";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import {
|
||||
CreateCommunicationTypeCommand,
|
||||
DeleteCommunicationTypeCommand,
|
|
@ -1,6 +1,6 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { executivePosition } from "../entity/executivePosition";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { executivePosition } from "../../../entity/settings/executivePosition";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import {
|
||||
CreateExecutivePositionCommand,
|
||||
DeleteExecutivePositionCommand,
|
|
@ -1,6 +1,6 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { membershipStatus } from "../entity/membershipStatus";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { membershipStatus } from "../../../entity/settings/membershipStatus";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import {
|
||||
CreateMembershipStatusCommand,
|
||||
DeleteMembershipStatusCommand,
|
|
@ -1,4 +1,4 @@
|
|||
import { NewsletterConfigType } from "../enums/newsletterConfigType";
|
||||
import { NewsletterConfigType } from "../../../enums/newsletterConfigType";
|
||||
|
||||
export interface SetNewsletterConfigCommand {
|
||||
comTypeId: number;
|
|
@ -1,6 +1,6 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { newsletterConfig } from "../entity/newsletterConfig";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { newsletterConfig } from "../../../entity/settings/newsletterConfig";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import { DeleteNewsletterConfigCommand, SetNewsletterConfigCommand } from "./newsletterConfigCommand";
|
||||
|
||||
export default abstract class NewsletterConfigCommandHandler {
|
|
@ -1,6 +1,6 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { qualification } from "../entity/qualification";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { qualification } from "../../../entity/settings/qualification";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import {
|
||||
CreateQualificationCommand,
|
||||
DeleteQualificationCommand,
|
|
@ -1,4 +1,4 @@
|
|||
import { DynamicQueryStructure } from "../type/dynamicQueries";
|
||||
import { DynamicQueryStructure } from "../../../type/dynamicQueries";
|
||||
|
||||
export interface CreateQueryStoreCommand {
|
||||
title: string;
|
|
@ -1,6 +1,6 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { query } from "../entity/query";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { query } from "../../../entity/settings/query";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import { CreateQueryStoreCommand, DeleteQueryStoreCommand, UpdateQueryStoreCommand } from "./queryStoreCommand";
|
||||
|
||||
export default abstract class QueryStoreCommandHandler {
|
|
@ -1,6 +1,6 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { template } from "../entity/template";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { template } from "../../../entity/settings/template";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import { CreateTemplateCommand, DeleteTemplateCommand, UpdateTemplateCommand } from "./templateCommand";
|
||||
|
||||
export default abstract class TemplateCommandHandler {
|
|
@ -1,6 +1,6 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { templateUsage } from "../entity/templateUsage";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { templateUsage } from "../../../entity/settings/templateUsage";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import { UpdateTemplateUsageCommand } from "./templateUsageCommand";
|
||||
|
||||
export default abstract class TemplateUsageCommandHandler {
|
|
@ -1,6 +1,6 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { role } from "../entity/role";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { role } from "../../../entity/user/role";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import { CreateRoleCommand, DeleteRoleCommand, UpdateRoleCommand } from "./roleCommand";
|
||||
|
||||
export default abstract class RoleCommandHandler {
|
|
@ -1,4 +1,4 @@
|
|||
import { PermissionString } from "../type/permissionTypes";
|
||||
import { PermissionString } from "../../../type/permissionTypes";
|
||||
|
||||
export interface CreateRolePermissionCommand {
|
||||
permission: PermissionString;
|
|
@ -1,17 +1,17 @@
|
|||
import { DeleteResult, EntityManager, InsertResult } from "typeorm";
|
||||
import { dataSource } from "../data-source";
|
||||
import { rolePermission } from "../entity/role_permission";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import RoleService from "../service/roleService";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { rolePermission } from "../../../entity/user/role_permission";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import RoleService from "../../../service/user/roleService";
|
||||
import {
|
||||
CreateRolePermissionCommand,
|
||||
DeleteRolePermissionCommand,
|
||||
UpdateRolePermissionsCommand,
|
||||
} from "./rolePermissionCommand";
|
||||
import PermissionHelper from "../helpers/permissionHelper";
|
||||
import RolePermissionService from "../service/rolePermissionService";
|
||||
import { role } from "../entity/role";
|
||||
import { PermissionString } from "../type/permissionTypes";
|
||||
import PermissionHelper from "../../../helpers/permissionHelper";
|
||||
import RolePermissionService from "../../../service/user/rolePermissionService";
|
||||
import { role } from "../../../entity/user/role";
|
||||
import { PermissionString } from "../../../type/permissionTypes";
|
||||
|
||||
export default abstract class RolePermissionCommandHandler {
|
||||
/**
|
|
@ -1,7 +1,7 @@
|
|||
import { dataSource } from "../data-source";
|
||||
import { invite } from "../entity/invite";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { StringHelper } from "../helpers/stringHelper";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { invite } from "../../../entity/user/invite";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import { StringHelper } from "../../../helpers/stringHelper";
|
||||
import { CreateInviteCommand, DeleteInviteCommand } from "./inviteCommand";
|
||||
|
||||
export default abstract class InviteCommandHandler {
|
|
@ -1,7 +1,7 @@
|
|||
import { EntityManager } from "typeorm";
|
||||
import { dataSource } from "../data-source";
|
||||
import { user } from "../entity/user";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { user } from "../../../entity/user/user";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import {
|
||||
CreateUserCommand,
|
||||
DeleteUserCommand,
|
||||
|
@ -10,7 +10,7 @@ import {
|
|||
UpdateUserRolesCommand,
|
||||
UpdateUserSecretCommand,
|
||||
} from "./userCommand";
|
||||
import UserService from "../service/userService";
|
||||
import UserService from "../../../service/user/userService";
|
||||
|
||||
export default abstract class UserCommandHandler {
|
||||
/**
|
|
@ -1,4 +1,4 @@
|
|||
import { PermissionString } from "../type/permissionTypes";
|
||||
import { PermissionString } from "../../../type/permissionTypes";
|
||||
|
||||
export interface CreateUserPermissionCommand {
|
||||
permission: PermissionString;
|
|
@ -1,16 +1,16 @@
|
|||
import { DeleteResult, EntityManager, InsertResult } from "typeorm";
|
||||
import { dataSource } from "../data-source";
|
||||
import { user } from "../entity/user";
|
||||
import { userPermission } from "../entity/user_permission";
|
||||
import InternalException from "../exceptions/internalException";
|
||||
import { dataSource } from "../../../data-source";
|
||||
import { user } from "../../../entity/user/user";
|
||||
import { userPermission } from "../../../entity/user/user_permission";
|
||||
import InternalException from "../../../exceptions/internalException";
|
||||
import {
|
||||
CreateUserPermissionCommand,
|
||||
DeleteUserPermissionCommand,
|
||||
UpdateUserPermissionsCommand,
|
||||
} from "./userPermissionCommand";
|
||||
import UserPermissionService from "../service/userPermissionService";
|
||||
import PermissionHelper from "../helpers/permissionHelper";
|
||||
import { PermissionString } from "../type/permissionTypes";
|
||||
import UserPermissionService from "../../../service/user/userPermissionService";
|
||||
import PermissionHelper from "../../../helpers/permissionHelper";
|
||||
import { PermissionString } from "../../../type/permissionTypes";
|
||||
|
||||
export default abstract class UserPermissionCommandHandler {
|
||||
/**
|
Loading…
Add table
Add a link
Reference in a new issue