@crombolo/api-management 0.39.1 → 0.41.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/package.json +4 -4
- package/src/handlers/user.ts +5 -0
- package/src/ports-users.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crombolo/api-management",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.1",
|
|
4
4
|
"description": "Internal to crombolo, with no compatibility promise: use @crombolo/crombolo. Umbraco-compatible Management API handlers for crombolo.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Crombolo",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@crombolo/content": "0.
|
|
33
|
-
"@crombolo/contracts": "0.
|
|
34
|
-
"@crombolo/core": "0.
|
|
32
|
+
"@crombolo/content": "0.41.1",
|
|
33
|
+
"@crombolo/contracts": "0.41.1",
|
|
34
|
+
"@crombolo/core": "0.41.1"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/src/handlers/user.ts
CHANGED
|
@@ -121,6 +121,11 @@ const GROUP_PROBLEMS: Partial<Record<UserGroupStatus, [number, string, string]>>
|
|
|
121
121
|
'The alias of a system user group cannot be changed.',
|
|
122
122
|
],
|
|
123
123
|
IsSystemUserGroup: [400, 'System user group', 'A system user group cannot be deleted.'],
|
|
124
|
+
DeclaredInFiles: [
|
|
125
|
+
409,
|
|
126
|
+
"Kept in the site's files",
|
|
127
|
+
"This group comes from the site's files: its name, sections, permissions and languages are changed there, and it is removed by deleting its file. Its start nodes and page permissions can be changed here.",
|
|
128
|
+
],
|
|
124
129
|
DocumentStartNodeKeyNotFound: [
|
|
125
130
|
404,
|
|
126
131
|
'Document start node key not found',
|
package/src/ports-users.ts
CHANGED
|
@@ -206,6 +206,8 @@ export type UserGroupStatus =
|
|
|
206
206
|
| 'LanguageNotFound'
|
|
207
207
|
| 'AdminGroupCannotBeEmpty'
|
|
208
208
|
| 'UserNotFound'
|
|
209
|
+
/** Crombolo: the group comes from the site's files, and this change is the files' to make (story 228). */
|
|
210
|
+
| 'DeclaredInFiles'
|
|
209
211
|
|
|
210
212
|
export interface UserGroupPort {
|
|
211
213
|
list(skip: number, take: number): Promise<Page<UserGroupResponse>>
|