Skip to content

Commit 51a1c25

Browse files
ezesunriseofuochi
authored andcommitted
Design/folder restructure (#91)
* initial separation of layers * moved folders to appropriate positions * restructured application layer
1 parent 4b5560c commit 51a1c25

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+86
-79
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export interface ILoggerService {
2+
silly(message: string, meta?: any): void;
3+
error(message: string, meta?: any): void;
4+
info(message: string, meta?: any): void;
5+
debug(message: string, meta?: any): void;
6+
warn(message: string, meta?: any): void;
7+
}

src/domain/interfaces/services.ts renamed to src/core/application/mail_service.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,3 @@ export interface IMailService {
2424
*/
2525
startEmailSequence(sequenceType: MailJobType, data: any): void;
2626
}
27-
28-
export interface ILoggerService {
29-
silly(message: string, meta?: any): void;
30-
error(message: string, meta?: any): void;
31-
info(message: string, meta?: any): void;
32-
debug(message: string, meta?: any): void;
33-
warn(message: string, meta?: any): void;
34-
}
File renamed without changes.
File renamed without changes.

src/domain/data/db_operators.ts renamed to src/core/domain/data/db_operators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { iocContainer } from "../../infrastructure/config/ioc";
1+
import { iocContainer } from "../../../infrastructure/config/ioc";
22
import { TYPES } from "../constants/types";
33
import { IFunctionQuery } from "./function_query";
44

File renamed without changes.

src/domain/interfaces/repositories.ts renamed to src/core/domain/data/repositories.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Tenant } from "../model/tenant";
2-
import { User } from "../model/user";
1+
import { Tenant } from "../models/tenant";
2+
import { User } from "../models/user";
33

44
export type Query<T> = {
55
[P in keyof T]?: T[P] | { $regex: RegExp };

src/domain/model/base.ts renamed to src/core/domain/models/base.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { modelOptions, pre, prop, Ref } from "@typegoose/typegoose";
22
import { TimeStamps } from "@typegoose/typegoose/lib/defaultClasses";
33
import { Expose } from "class-transformer";
44
import { Query } from "mongoose";
5-
import { winstonLoggerInstance } from "../../infrastructure/bootstrapping/loaders/logger";
6-
import { iocContainer } from "../../infrastructure/config/ioc";
7-
import { DecodedJwt } from "../../ui/services/auth_service";
5+
import { iocContainer } from "../../../infrastructure/config/ioc";
6+
import { DecodedJwt } from "../../../ui/services/auth_service";
7+
import { winstonLoggerInstance } from "../../../infrastructure/bootstrapping/loaders/logger";
88
import { TYPES } from "../constants/types";
99
import { Writable } from "../utils/writable";
1010
import { User } from "./user";
File renamed without changes.

0 commit comments

Comments
 (0)