@synergy-server/core 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/dist/core/accessLogs/controllers/index.d.ts +4 -0
- package/dist/core/accessLogs/routes/index.d.ts +3 -0
- package/dist/core/app/controllers/index.d.ts +18 -0
- package/dist/core/app/routes/index.d.ts +2 -0
- package/dist/core/auth/autoLoginAuth.d.ts +5 -0
- package/dist/core/auth/controllers/index.d.ts +13 -0
- package/dist/core/auth/cryptoGen.d.ts +13 -0
- package/dist/core/auth/passportAuth.d.ts +8 -0
- package/dist/core/auth/routes/index.d.ts +2 -0
- package/dist/core/auth/session.d.ts +1 -0
- package/dist/core/objects/controllers.d.ts +3 -0
- package/dist/core/objects/index.d.ts +3 -0
- package/dist/core/objects/routes.d.ts +6 -0
- package/dist/core/reports/controllers/index.d.ts +8 -0
- package/dist/core/reports/controllers/virtualTables.d.ts +13 -0
- package/dist/core/reports/routes/index.d.ts +2 -0
- package/dist/core/services/accessLogger.service.d.ts +3 -0
- package/dist/core/services/app.service.d.ts +9 -0
- package/dist/core/services/bootstrap.service.d.ts +3 -0
- package/dist/core/services/common.service.d.ts +10 -0
- package/dist/core/services/controller.service.d.ts +66 -0
- package/dist/core/services/dataProcessor.service.d.ts +23 -0
- package/dist/core/services/document.service.d.ts +7 -0
- package/dist/core/services/event.service.d.ts +7 -0
- package/dist/core/services/license.service.d.ts +5 -0
- package/dist/core/services/loadEnv.d.ts +1 -0
- package/dist/core/services/logger.service.d.ts +3 -0
- package/dist/core/services/migration.service.d.ts +15 -0
- package/dist/core/services/objectVersions.service.d.ts +7 -0
- package/dist/core/services/register.service.d.ts +9 -0
- package/dist/core/services/reportToExcel.service.d.ts +6 -0
- package/dist/core/services/reportToPdf.service.d.ts +5 -0
- package/dist/core/services/restApi.service.d.ts +4 -0
- package/dist/core/services/rotatingStream.service.d.ts +4 -0
- package/dist/core/services/scheduledJob.service.d.ts +22 -0
- package/dist/core/services/security.service.d.ts +16 -0
- package/dist/core/services/seeder.service.d.ts +7 -0
- package/dist/core/services/userAccess.service.d.ts +21 -0
- package/dist/core/services/userRights.service.d.ts +15 -0
- package/dist/database/config.d.ts +12 -0
- package/dist/database/dbConnection.d.ts +3 -0
- package/dist/database/migrationConfig.d.ts +30 -0
- package/dist/main.d.ts +15 -0
- package/dist/main.js +2 -0
- package/dist/main.js.LICENSE.txt +6 -0
- package/dist/main.js.map +1 -0
- package/dist/middleware/accessRights.d.ts +8 -0
- package/dist/middleware/fileUpload.d.ts +3 -0
- package/dist/routes/dynamicRoutes.d.ts +6 -0
- package/dist/routes/index.d.ts +2 -0
- package/dist/routes/staticRoutes.d.ts +3 -0
- package/dist/src/views/error.pug +6 -0
- package/dist/src/views/index.pug +5 -0
- package/dist/src/views/layout.pug +6 -0
- package/package.json +102 -0
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Synergy Server Core
|
|
2
|
+
|
|
3
|
+
`synergy-server-core` is the core framework for the SYNERGY server application. It allows for the rapid and flexible creation of business applications with minimal programming.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Dynamic Database Structure**: Create catalogs, documents, registers, reports, and print forms tailored to the specific needs of an enterprise.
|
|
8
|
+
- **Flexibility**: Suitable for various industries, including logistics, retail, production, warehouse management, and more.
|
|
9
|
+
- **Minimal Programming**: Configure business logic and data structures through the client application.
|
|
10
|
+
|
|
11
|
+
## Use Cases
|
|
12
|
+
|
|
13
|
+
- Building logistics management systems.
|
|
14
|
+
- Managing retail operations.
|
|
15
|
+
- Organizing production processes.
|
|
16
|
+
- Maintaining warehouse records.
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install synergy-server-core
|
|
22
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Request, Response, NextFunction } from 'express';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
getAppInfo(req: Request, res: Response, nex: NextFunction): Promise<void>;
|
|
4
|
+
getObjectMetadata(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
5
|
+
getObjectFields(req: Request, res: Response, nex: NextFunction): Promise<void>;
|
|
6
|
+
getSubordination(req: Request, res: Response, nex: NextFunction): Promise<void>;
|
|
7
|
+
getObjects(req: Request, res: Response, nex: NextFunction): Promise<void>;
|
|
8
|
+
getModels(req: Request, res: Response, nex: NextFunction): Promise<void>;
|
|
9
|
+
getRegistersMetadata(req: Request, res: Response, nex: NextFunction): Promise<void>;
|
|
10
|
+
getSetting(req: Request, res: Response, nex: NextFunction): Promise<void>;
|
|
11
|
+
setSetting(req: Request, res: Response, nex: NextFunction): Promise<void>;
|
|
12
|
+
getEnums(req: Request, res: Response, nex: NextFunction): Promise<void>;
|
|
13
|
+
getAppObjects(req: Request, res: Response, nex: NextFunction): Promise<void>;
|
|
14
|
+
execFunc(req: Request, res: Response, nex: NextFunction): Promise<void>;
|
|
15
|
+
hasRole(req: Request, res: Response, nex: NextFunction): Promise<void>;
|
|
16
|
+
rawQuery(req: Request, res: Response, nex: NextFunction): Promise<void>;
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Request, Response, NextFunction } from 'express';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
login(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
4
|
+
session(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
5
|
+
logout(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
6
|
+
register(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
7
|
+
confirmEmailAddress(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
8
|
+
resendEmailAddressConfirmationLink(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
9
|
+
forgotPassword(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
10
|
+
validatePasswordResetToken(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
11
|
+
resetPassword(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
generateRandomToken(): string;
|
|
3
|
+
createPasswordHash(password: string): string;
|
|
4
|
+
encrypt(value: any): {
|
|
5
|
+
iv: string;
|
|
6
|
+
content: string;
|
|
7
|
+
};
|
|
8
|
+
decrypt(hash: {
|
|
9
|
+
iv: string;
|
|
10
|
+
content: string;
|
|
11
|
+
}): string;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PassportStatic } from 'passport';
|
|
2
|
+
import { Request, Response } from 'express';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
initializePassport(passport: PassportStatic): void;
|
|
5
|
+
isAuthenticated(req: Request, res: Response, done: Function): Response<any, Record<string, any>>;
|
|
6
|
+
isSuperAdmin(req: Request, res: Response, done: Function): Response<any, Record<string, any>>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NextFunction, Request, Response } from 'express';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
getSettings(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
4
|
+
getResult(req: Request, res: Response, next: NextFunction): Promise<void>;
|
|
5
|
+
generateExcel(req: Request, res: Response): Promise<void>;
|
|
6
|
+
generatePdf(req: Request, res: Response): Promise<void>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Request } from 'express';
|
|
2
|
+
declare const _default: (req: Request) => Promise<({
|
|
3
|
+
name: string;
|
|
4
|
+
query: string;
|
|
5
|
+
params: {
|
|
6
|
+
authorId: any;
|
|
7
|
+
};
|
|
8
|
+
} | {
|
|
9
|
+
name: string;
|
|
10
|
+
query: string;
|
|
11
|
+
params?: undefined;
|
|
12
|
+
})[]>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Model, ModelStatic } from 'sequelize';
|
|
2
|
+
import { Request } from 'express';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
prepareIncludes(object: ModelStatic<Model<any, any>>, params: Record<string, any>, attributes?: string[], filters?: Record<string, any>, order?: Record<string, any>, extraAttributes?: string[]): Record<string, any>;
|
|
5
|
+
setAuthor(objectData: Record<string, any>, req: Request): Promise<void>;
|
|
6
|
+
executeConditionCode(str: string, args: any): any;
|
|
7
|
+
translateField(rowData: Record<string, any>, fieldName: string, langCode: string): any;
|
|
8
|
+
initEnums(): Promise<Record<string, any>>;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { StatusCodes } from 'http-status-codes';
|
|
2
|
+
import { NextFunction, Request, Response } from 'express';
|
|
3
|
+
import { AppObject } from '@/src/types';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
findAllItems(req: Request, res: Response, next: NextFunction, object: AppObject, params?: Record<string, any>): Promise<{
|
|
6
|
+
status: StatusCodes;
|
|
7
|
+
responseData: Record<string, any>[];
|
|
8
|
+
} | {
|
|
9
|
+
status: StatusCodes;
|
|
10
|
+
responseData: {
|
|
11
|
+
message: any;
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
14
|
+
findItem(req: Request, res: Response, next: NextFunction, object: AppObject, params?: Record<string, any>): Promise<any>;
|
|
15
|
+
findOne(req: Request, res: Response, next: NextFunction, object: AppObject, params?: Record<string, any>): Promise<{
|
|
16
|
+
status: StatusCodes;
|
|
17
|
+
responseData: {
|
|
18
|
+
message: string;
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
21
|
+
findPredefinedItem(req: Request, res: Response, next: NextFunction, object: AppObject, params?: Record<string, any>): Promise<any>;
|
|
22
|
+
createItem(req: Request, res: Response, next: NextFunction, object: AppObject, params?: Record<string, any>, afterCreate?: any): Promise<{
|
|
23
|
+
status: StatusCodes;
|
|
24
|
+
responseData: any;
|
|
25
|
+
}>;
|
|
26
|
+
updateItem(req: Request, res: Response, next: NextFunction, object: AppObject, params?: Record<string, any>, afterUpdate?: any): Promise<{
|
|
27
|
+
status: StatusCodes;
|
|
28
|
+
responseData: any;
|
|
29
|
+
}>;
|
|
30
|
+
confirmItem(req: Request, res: Response, next: NextFunction, object: AppObject, params?: Record<string, any>): Promise<{
|
|
31
|
+
status: StatusCodes;
|
|
32
|
+
data: any;
|
|
33
|
+
message: string;
|
|
34
|
+
responseData?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
status: StatusCodes;
|
|
37
|
+
responseData: {
|
|
38
|
+
message: any;
|
|
39
|
+
};
|
|
40
|
+
data?: undefined;
|
|
41
|
+
message?: undefined;
|
|
42
|
+
}>;
|
|
43
|
+
undoConfirmItem(req: Request, res: Response, next: NextFunction, object: AppObject, params?: Record<string, any>): Promise<{
|
|
44
|
+
status: StatusCodes;
|
|
45
|
+
responseData: {
|
|
46
|
+
message: any;
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
49
|
+
deleteItem(req: Request, res: Response, next: NextFunction, object: AppObject, params: Record<string, any>, afterDelete: any): Promise<{
|
|
50
|
+
status: StatusCodes;
|
|
51
|
+
responseData: {
|
|
52
|
+
message: any;
|
|
53
|
+
};
|
|
54
|
+
}>;
|
|
55
|
+
changeItemDeletionMark(req: Request, res: Response, next: NextFunction, object: AppObject, params?: Record<string, any>, afterUpdate?: any): Promise<{
|
|
56
|
+
status: StatusCodes;
|
|
57
|
+
responseData: any;
|
|
58
|
+
}>;
|
|
59
|
+
calculateRegisterTotals(req: Request, res: Response, next: NextFunction, object: AppObject): Promise<{
|
|
60
|
+
status: StatusCodes;
|
|
61
|
+
responseData: {
|
|
62
|
+
message: string;
|
|
63
|
+
};
|
|
64
|
+
}>;
|
|
65
|
+
};
|
|
66
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { StatusCodes } from 'http-status-codes';
|
|
2
|
+
import { NextFunction, Request, Response } from 'express';
|
|
3
|
+
import { AppObject } from '@/src/types';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
executeProcessing(req: Request, res: Response, next: NextFunction, object: AppObject): Promise<{
|
|
6
|
+
status: StatusCodes;
|
|
7
|
+
responseData: {
|
|
8
|
+
executionComplited: boolean;
|
|
9
|
+
result: any;
|
|
10
|
+
message?: undefined;
|
|
11
|
+
};
|
|
12
|
+
} | {
|
|
13
|
+
status: StatusCodes;
|
|
14
|
+
responseData: {
|
|
15
|
+
message: any;
|
|
16
|
+
executionComplited?: undefined;
|
|
17
|
+
result?: undefined;
|
|
18
|
+
};
|
|
19
|
+
}>;
|
|
20
|
+
exportProcessor(req: Request, res: Response, next: NextFunction, object: AppObject): Promise<any>;
|
|
21
|
+
importProcessor(req: Request, res: Response, next: NextFunction, object: AppObject): Promise<Response<any, Record<string, any>>>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ModelStatic, Model, Transaction } from 'sequelize';
|
|
2
|
+
import { AppObject } from '@/src/types';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
setNumber(object: AppObject, objectData: Record<string, any>, t: Transaction): Promise<void>;
|
|
5
|
+
nextNumber(object: ModelStatic<Model<any, any>>, prefix: string, numberPeriod: any, t: Transaction): Promise<number>;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function loadEnv(): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StatusCodes } from 'http-status-codes';
|
|
2
|
+
import { NextFunction, Request, Response } from 'express';
|
|
3
|
+
import { AppObject } from '@/src/types';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
executeMigrations(req: Request, res: Response, next: NextFunction, object: AppObject): Promise<{
|
|
6
|
+
status: StatusCodes;
|
|
7
|
+
responseData: {
|
|
8
|
+
message: string;
|
|
9
|
+
};
|
|
10
|
+
}>;
|
|
11
|
+
prepareFieldsDifs(oldFields: Record<string, any>[], newFields: Record<string, any>[], tableParts: Record<string, any>[]): any[];
|
|
12
|
+
createTable(appObject: AppObject): Promise<boolean>;
|
|
13
|
+
updateTable(tableData: Record<string, any>): Promise<boolean>;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Model, Transaction, ModelStatic } from 'sequelize';
|
|
2
|
+
import { Request } from 'express';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
onChangeHandler(objectModel: ModelStatic<Model<any, any>>, objectId: string, changeMode: string, userId: string, t?: Transaction): Promise<void>;
|
|
5
|
+
addChanges(objectData: Record<string, any>, req: Request): Promise<void>;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Transaction } from 'sequelize';
|
|
2
|
+
import { AppObject } from '@/src/types';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
updateTotals(register: AppObject, params: Record<string, any>): Promise<void>;
|
|
5
|
+
calculateTotals(register: AppObject, objects: Record<string, AppObject>): Promise<void>;
|
|
6
|
+
getCalculatedPeriod(registersCalculation: AppObject, registerId: string): Promise<any>;
|
|
7
|
+
updateCalculatedPeriod(registersCalculation: AppObject, data: Record<string, any>, transaction: Transaction): Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { StatusCodes } from 'http-status-codes';
|
|
2
|
+
import { AppObject } from '@/src/types';
|
|
3
|
+
import { NextFunction, Request, Response } from 'express';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
init(objects: Record<string, AppObject>): Promise<void>;
|
|
6
|
+
executeManually(req: Request, res: Response, next: NextFunction, object: AppObject): Promise<{
|
|
7
|
+
status: StatusCodes;
|
|
8
|
+
responseData: {
|
|
9
|
+
executionComplited: boolean;
|
|
10
|
+
result: any;
|
|
11
|
+
message?: undefined;
|
|
12
|
+
};
|
|
13
|
+
} | {
|
|
14
|
+
status: StatusCodes;
|
|
15
|
+
responseData: {
|
|
16
|
+
message: any;
|
|
17
|
+
executionComplited?: undefined;
|
|
18
|
+
result?: undefined;
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { StatusCodes } from 'http-status-codes';
|
|
2
|
+
interface ResultData {
|
|
3
|
+
httpStatus: StatusCodes;
|
|
4
|
+
result: Record<string, any> | boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: {
|
|
7
|
+
emailConfirmationInstructions(email: string, name: string, login: string, token: string): Promise<void>;
|
|
8
|
+
register(userObj: Record<string, any>): Promise<ResultData>;
|
|
9
|
+
confirmEmailAddress(token: string): Promise<ResultData>;
|
|
10
|
+
resendEmailAddressConfirmationLink(email: string): Promise<ResultData>;
|
|
11
|
+
forgotPassword(email: string): Promise<ResultData>;
|
|
12
|
+
isPasswordResetTokenValid(token: string): Promise<ResultData>;
|
|
13
|
+
resetPassword(token: string, newPassword: string): Promise<ResultData>;
|
|
14
|
+
emailOnUserStateChange(email: string, status: string): Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ModelStatic, Model } from 'sequelize';
|
|
2
|
+
import { AppObject } from '@/src/types';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
updateInitialData(object: ModelStatic<Model<any, any>>, filename: string, params?: Record<string, any>): Promise<void>;
|
|
5
|
+
updatePredefinedInitialData(object: AppObject): Promise<void>;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AppObject } from '@/src/types';
|
|
2
|
+
import { Request } from 'express';
|
|
3
|
+
interface UserAccessRole {
|
|
4
|
+
userRoleId: string;
|
|
5
|
+
canRead: boolean;
|
|
6
|
+
canModify: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: {
|
|
9
|
+
getUserAccessRoles(userId: string, canRead?: boolean, canModify?: boolean): Promise<UserAccessRole[]>;
|
|
10
|
+
getUserAccessRoleId(userId: any, canRead?: boolean, canModify?: boolean): Promise<Record<any, any>[]>;
|
|
11
|
+
getUserRoleByKey(roleKey: any): Promise<Record<any, any>>;
|
|
12
|
+
getUserRoleById(roleId: string): Promise<Record<any, any>>;
|
|
13
|
+
checkUserAccess(userId: string, role: Record<string, any>, canRead?: boolean, canModify?: boolean): Promise<boolean | Error>;
|
|
14
|
+
getAllSubDepartments(department: Record<string, any>, include: Record<string, any>): Promise<any[]>;
|
|
15
|
+
accessRestrictions(req: Request, object: AppObject): Promise<{
|
|
16
|
+
use: boolean;
|
|
17
|
+
users: any[];
|
|
18
|
+
}>;
|
|
19
|
+
getUserAccessNavigation(userId: string): Promise<any[]>;
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Request } from 'express';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
getUserExecutorRoles(executorId: string): Promise<any[]>;
|
|
4
|
+
getVendorsAndCustomersFilter(counterparies: string[]): Promise<string[]>;
|
|
5
|
+
getCustomerFilter(req: Request): Promise<{
|
|
6
|
+
fullAccess: boolean;
|
|
7
|
+
counterparties: any[];
|
|
8
|
+
}>;
|
|
9
|
+
getForwarderFilter(req: Request): Promise<{
|
|
10
|
+
fullAccess: boolean;
|
|
11
|
+
forwarder: string;
|
|
12
|
+
}>;
|
|
13
|
+
getRoleGroups(req: Request): Promise<string[]>;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import 'dotenv/config';
|
|
2
|
+
import { Dialect } from 'sequelize/types';
|
|
3
|
+
interface DatabaseConfig {
|
|
4
|
+
dbName: string;
|
|
5
|
+
dbUser: string;
|
|
6
|
+
dbPassword: string;
|
|
7
|
+
dbDialect: Dialect;
|
|
8
|
+
dbHost: string;
|
|
9
|
+
dbPort: number;
|
|
10
|
+
}
|
|
11
|
+
declare const databaseConfig: DatabaseConfig;
|
|
12
|
+
export default databaseConfig;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
development: {
|
|
3
|
+
username: string;
|
|
4
|
+
password: string;
|
|
5
|
+
database: string;
|
|
6
|
+
host: string;
|
|
7
|
+
port: string;
|
|
8
|
+
dialect: string;
|
|
9
|
+
migrationStorageTableName: string;
|
|
10
|
+
};
|
|
11
|
+
test: {
|
|
12
|
+
username: string;
|
|
13
|
+
password: string;
|
|
14
|
+
database: string;
|
|
15
|
+
host: string;
|
|
16
|
+
port: string;
|
|
17
|
+
dialect: string;
|
|
18
|
+
migrationStorageTableName: string;
|
|
19
|
+
};
|
|
20
|
+
production: {
|
|
21
|
+
username: string;
|
|
22
|
+
password: string;
|
|
23
|
+
database: string;
|
|
24
|
+
host: string;
|
|
25
|
+
port: string;
|
|
26
|
+
dialect: string;
|
|
27
|
+
migrationStorageTableName: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Application } from 'express';
|
|
2
|
+
import sequelize from './database/dbConnection';
|
|
3
|
+
declare const app: Application;
|
|
4
|
+
import './core/auth/session';
|
|
5
|
+
import accessRights from './middleware/accessRights';
|
|
6
|
+
import logger from './core/services/logger.service';
|
|
7
|
+
import commonService from './core/services/common.service';
|
|
8
|
+
import controllerService from './core/services/controller.service';
|
|
9
|
+
import appService from './core/services/app.service';
|
|
10
|
+
import defineObjects from './core/objects/controllers';
|
|
11
|
+
import cryptoGen from './core/auth/cryptoGen';
|
|
12
|
+
import documentService from './core/services/document.service';
|
|
13
|
+
import seederService from './core/services/seeder.service';
|
|
14
|
+
import registerService from './core/services/register.service';
|
|
15
|
+
export { app, sequelize, accessRights, commonService, controllerService, documentService, appService, logger, defineObjects, cryptoGen, seederService, registerService };
|