very-express 0.4.1 → 0.4.2

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.
@@ -1,7 +1,7 @@
1
1
  // {{headerComment}}
2
2
 
3
3
  import { Profile } from "passport";
4
- import { UserModel } from "./../models/UserModel.gen";
4
+ import { UserModel } from "./../_models/UserModel.gen";
5
5
 
6
6
  interface IProfile extends Profile {
7
7
  [key: string]: any;
@@ -0,0 +1,13 @@
1
+ enum responseMessage {
2
+ permissionDeny = "Permission Denied",
3
+ ok = "OK",
4
+ notFound = "Not Found",
5
+ queryError = "Query Error",
6
+ validateError = "Validation Error",
7
+ unexpectedError = "Unexpected Error",
8
+ createFail = "Create Fail",
9
+ updateFail = "Update Fail",
10
+ deleteFail = "Delete Fail",
11
+ }
12
+
13
+ export default responseMessage;
@@ -0,0 +1,6 @@
1
+ import * as types from "../../types/types";
2
+ export declare function compile(options: {
3
+ middlewareDir: string;
4
+ roleTypes: string;
5
+ compilerOptions: types.compilerOptions;
6
+ }): Promise<void>;
@@ -0,0 +1,6 @@
1
+ import * as types from "../../types/types";
2
+ export default function RBACmiddlewareTemplate(options: {
3
+ template?: string;
4
+ roleTypes: string;
5
+ compilerOptions: types.compilerOptions;
6
+ }): string;
@@ -0,0 +1,8 @@
1
+ import * as types from "../../types/types";
2
+ export declare function compile(options: {
3
+ collectionList: string[];
4
+ roleSourceDir: string;
5
+ roleOutDir: string;
6
+ middlewareDir: string;
7
+ compilerOptions: types.compilerOptions;
8
+ }): Promise<void>;
@@ -0,0 +1,8 @@
1
+ import * as types from "../../types/types";
2
+ export default function RBACmiddlewareTemplate(options: {
3
+ template?: string;
4
+ role: string;
5
+ roleContent: any;
6
+ RoleAccessActionString: string[];
7
+ compilerOptions: types.compilerOptions;
8
+ }): string;