@ooneex/routing 1.2.2 → 1.3.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import { ControllerClassType as ControllerClassType2 } from "@ooneex/controller"
2
2
  import { AssertType as AssertType2 } from "@ooneex/validation";
3
3
  import { EnvironmentNameType } from "@ooneex/app-env";
4
4
  import { ControllerClassType } from "@ooneex/controller";
5
+ import { PermissionClassType } from "@ooneex/permission";
5
6
  import { ERole } from "@ooneex/role";
6
7
  import { HttpMethodType } from "@ooneex/types";
7
8
  import { AssertType, IAssert } from "@ooneex/validation";
@@ -20,6 +21,7 @@ type RouteConfigType = {
20
21
  ip?: string[];
21
22
  host?: string[];
22
23
  roles?: ERole[];
24
+ permission?: PermissionClassType;
23
25
  cache?: boolean;
24
26
  isSocket: boolean;
25
27
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ooneex/routing",
3
3
  "description": "Decorator-driven HTTP routing with path parameters, validation constraints, permission guards, and named route generation",
4
- "version": "1.2.2",
4
+ "version": "1.3.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@ooneex/app-env": "1.2.0",
38
- "@ooneex/controller": "1.2.2",
38
+ "@ooneex/controller": "1.3.0",
39
39
  "@ooneex/http-response": "1.2.2",
40
40
  "@ooneex/permission": "1.1.2",
41
41
  "@ooneex/role": "1.1.2",