@oondemand/create-central-oon 0.3.73 → 0.3.75

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oondemand/create-central-oon",
3
- "version": "0.3.73",
3
+ "version": "0.3.75",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/oondemand/oon-platform.git",
@@ -20,9 +20,7 @@
20
20
  "id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9._-]*$" },
21
21
  "name": { "type": "string", "minLength": 1 },
22
22
  "slug": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" },
23
- "appKind": {
24
- "enum": ["root-central", "member-central", "portal-cockpit"]
25
- },
23
+ "appKind": { "enum": ["root-central", "member-central", "portal-cockpit"] },
26
24
  "modules": {
27
25
  "type": "object",
28
26
  "additionalProperties": false,
@@ -68,6 +66,44 @@
68
66
  "configurationVersion": { "type": "integer", "minimum": 1 },
69
67
  "fields": { "type": "array" }
70
68
  }
69
+ },
70
+ "rbac": {
71
+ "type": "object",
72
+ "additionalProperties": false,
73
+ "required": ["roles"],
74
+ "properties": {
75
+ "permissions": {
76
+ "type": "array",
77
+ "uniqueItems": true,
78
+ "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]*(?:\\.[a-z][a-z0-9-]*)+$" }
79
+ },
80
+ "invitationTtlHours": { "type": "integer", "minimum": 1, "maximum": 720 },
81
+ "roles": {
82
+ "type": "array",
83
+ "minItems": 1,
84
+ "items": {
85
+ "type": "object",
86
+ "additionalProperties": false,
87
+ "required": ["code", "name", "permissions"],
88
+ "properties": {
89
+ "code": { "type": "string", "pattern": "^[a-z][a-z0-9_-]*$" },
90
+ "name": { "type": "string", "minLength": 1 },
91
+ "description": { "type": "string" },
92
+ "admin": { "type": "boolean" },
93
+ "permissions": {
94
+ "type": "array",
95
+ "uniqueItems": true,
96
+ "items": {
97
+ "anyOf": [
98
+ { "const": "*" },
99
+ { "type": "string", "pattern": "^[a-z][a-z0-9-]*(?:\\.[a-z][a-z0-9-]*)+$" }
100
+ ]
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }
71
107
  }
72
108
  }
73
109
  }
@@ -12,6 +12,6 @@
12
12
  "deploy": "oonCore-back deploy"
13
13
  },
14
14
  "dependencies": {
15
- "@oondemand/oon-core-back": "^0.3.73"
15
+ "@oondemand/oon-core-back": "^0.3.75"
16
16
  }
17
17
  }
@@ -27,5 +27,36 @@
27
27
  "enabled": true,
28
28
  "configurationVersion": 1,
29
29
  "fields": []
30
+ },
31
+ "rbac": {
32
+ "invitationTtlHours": 72,
33
+ "permissions": [],
34
+ "roles": [
35
+ {
36
+ "code": "admin",
37
+ "name": "Administrador",
38
+ "description": "Administra usuários, acessos e todas as operações da Central.",
39
+ "admin": true,
40
+ "permissions": ["*"]
41
+ },
42
+ {
43
+ "code": "operator",
44
+ "name": "Operador",
45
+ "description": "Opera a Central conforme as permissões de negócio declaradas pelo projeto.",
46
+ "permissions": []
47
+ },
48
+ {
49
+ "code": "developer",
50
+ "name": "Desenvolvedor",
51
+ "description": "Preserva a migração dos perfis de desenvolvimento existentes; permissões canônicas são declaradas pelo projeto.",
52
+ "permissions": []
53
+ },
54
+ {
55
+ "code": "viewer",
56
+ "name": "Consulta",
57
+ "description": "Perfil base para acesso somente às consultas explicitamente permitidas.",
58
+ "permissions": []
59
+ }
60
+ ]
30
61
  }
31
62
  }
@@ -10,7 +10,7 @@
10
10
  "sync:metadata": "oonCore-front sync:metadata"
11
11
  },
12
12
  "dependencies": {
13
- "@oondemand/oon-core-front": "^0.3.73",
13
+ "@oondemand/oon-core-front": "^0.3.75",
14
14
  "@chakra-ui/react": "^3.13.0",
15
15
  "@emotion/react": "^11.14.0",
16
16
  "@tanstack/react-query": "^5.65.0",