-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Commands, queries and events imports
- Loading branch information
Showing
5 changed files
with
48 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import LoginUserCommandHandler from '@src/languages/application/auth/command/loginUser/loginUserCommandHandler'; | ||
import CreateCountryCommandHandler from '@src/languages/application/country/command/create/createCountryCommandHandler'; | ||
import CreateExpressionCommandHandler from '@src/languages/application/expression/command/create/createExpressionCommandHandler'; | ||
import DeleteExpressionCommandHandler from '@src/languages/application/expression/command/delete/deleteExpressionCommandHandler'; | ||
import CreateTermCommandHandler from '@src/languages/application/term/command/create/createTermCommandHandler'; | ||
import CreateUserCommandHandler from '@src/languages/application/user/command/create/createUserCommandHandler'; | ||
import UpdateUserCommandHandler from '@src/languages/application/user/command/update/updateUserCommandHandler'; | ||
import CreateWordCommandHandler from '@src/languages/application/word/command/create/createWordCommandHandler'; | ||
import DeleteWordCommandHandler from '@src/languages/application/word/command/delete/deleteWordCommandHandler'; | ||
|
||
export const commands = [ | ||
LoginUserCommandHandler, | ||
CreateCountryCommandHandler, | ||
CreateExpressionCommandHandler, | ||
CreateTermCommandHandler, | ||
CreateUserCommandHandler, | ||
UpdateUserCommandHandler, | ||
CreateWordCommandHandler, | ||
DeleteExpressionCommandHandler, | ||
DeleteWordCommandHandler, | ||
]; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import DeleteExpressionOnTermCreatedFailedEventHandler from '@src/languages/application/expression/event/delete/deleteExpressionOnTermCreatedFailedEventHandler'; | ||
import CreateOnExpressionCreatedEventHandler from '@src/languages/application/term/event/create/createOnExpressionCreatedEventHandler'; | ||
import CreateOnWordCreatedEventHandler from '@src/languages/application/term/event/create/createOnWordCreatedEventHandler'; | ||
import CreateOrUpdateUserOnAuthSessionCreatedEventHandler from '@src/languages/application/user/event/createOrUpdate/createOrUpdateUserOnAuthSessionCreatedEventHandler'; | ||
import DeleteWordOnTermCreatedFailedEventHandler from '@src/languages/application/word/event/delete/deleteWordOnTermCreatedFailedEventHandler'; | ||
|
||
export const events = [ | ||
CreateOnWordCreatedEventHandler, | ||
CreateOrUpdateUserOnAuthSessionCreatedEventHandler, | ||
CreateOnExpressionCreatedEventHandler, | ||
DeleteExpressionOnTermCreatedFailedEventHandler, | ||
DeleteWordOnTermCreatedFailedEventHandler, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import FindCountryQueryHandler from '@src/languages/application/country/query/find/findCountryQueryHandler'; | ||
import FindCountriesQueryHandler from '@src/languages/application/country/query/findAll/findCountriesQueryHandler'; | ||
import SearchTermQueryHandler from '@src/languages/application/term/query/search/searchTermQueryHandler'; | ||
import FindUserQueryHandler from '@src/languages/application/user/query/find/findUserQueryHandler'; | ||
|
||
export const queries = [ | ||
FindCountryQueryHandler, | ||
FindCountriesQueryHandler, | ||
SearchTermQueryHandler, | ||
FindUserQueryHandler, | ||
]; |