-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactor mediatr-js in building-blocks
- Loading branch information
1 parent
f368d6a
commit 5aaa8f2
Showing
69 changed files
with
663 additions
and
556 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
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import { container } from 'tsyringe'; | ||
import { mediatrJs } from 'building-blocks/mediatr-js/mediatr.js'; | ||
import {CreateBooking, CreateBookingHandler} from "../booking/features/v1/create-booking/create-booking"; | ||
|
||
import { | ||
CreateBooking, | ||
CreateBookingHandler | ||
} from '../booking/features/v1/create-booking/create-booking'; | ||
import { mediatrJs } from 'building-blocks/mediatr-js/mediatr-js'; | ||
|
||
export const registerMediatrHandlers = () => { | ||
mediatrJs.registerHandler(CreateBooking, container.resolve(CreateBookingHandler)); | ||
mediatrJs.registerRequestHandler(CreateBooking, container.resolve(CreateBookingHandler)); | ||
}; |
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
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
import { ErrorRequestHandler } from 'express'; | ||
export declare const errorHandler: ErrorRequestHandler; |
8 changes: 4 additions & 4 deletions
8
...ding-blocks/error-handler/erro-handler.js → ...ing-blocks/error-handler/error-handler.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
@@ -1,2 +1,6 @@ | ||
import * as express from 'express'; | ||
export declare function expressAuthentication(request: express.Request, securityName: string, scopes?: string[]): Promise<any>; | ||
export declare function expressAuthentication( | ||
request: express.Request, | ||
securityName: string, | ||
scopes?: string[] | ||
): Promise<any>; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
export interface ILogger { | ||
debug(message: string): void; | ||
error(message: string | Error): void; | ||
info(message: string): void; | ||
debug(message: string): void; | ||
error(message: string | Error): void; | ||
info(message: string): void; | ||
} | ||
export declare class Logger implements ILogger { | ||
private static logger; | ||
constructor(); | ||
debug(message: string): void; | ||
static debug(message: string): void; | ||
info(message: string): void; | ||
static info(message: string): void; | ||
error(message: string | Error): void; | ||
static error(message: string | Error): void; | ||
private static logger; | ||
constructor(); | ||
debug(message: string): void; | ||
static debug(message: string): void; | ||
info(message: string): void; | ||
static info(message: string): void; | ||
error(message: string | Error): void; | ||
static error(message: string | Error): void; | ||
} |
Oops, something went wrong.