@crombolo/api-management 0.58.1 → 0.59.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.
- package/package.json +4 -4
- package/src/handlers/manifest.ts +7 -3
- package/src/ports.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crombolo/api-management",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.59.0",
|
|
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.59.0",
|
|
33
|
+
"@crombolo/contracts": "0.59.0",
|
|
34
|
+
"@crombolo/core": "0.59.0"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/src/handlers/manifest.ts
CHANGED
|
@@ -9,7 +9,11 @@ export function registerManifestHandlers(
|
|
|
9
9
|
router: ManagementApiRouter,
|
|
10
10
|
manifests: ManifestPort,
|
|
11
11
|
): void {
|
|
12
|
-
router.handle('GetManifestManifest', () => Response.json(manifests.list('all')))
|
|
13
|
-
router.handle('GetManifestManifestPublic', () =>
|
|
14
|
-
|
|
12
|
+
router.handle('GetManifestManifest', async () => Response.json(await manifests.list('all')))
|
|
13
|
+
router.handle('GetManifestManifestPublic', async () =>
|
|
14
|
+
Response.json(await manifests.list('public')),
|
|
15
|
+
)
|
|
16
|
+
router.handle('GetManifestManifestPrivate', async () =>
|
|
17
|
+
Response.json(await manifests.list('private')),
|
|
18
|
+
)
|
|
15
19
|
}
|
package/src/ports.ts
CHANGED
|
@@ -45,7 +45,8 @@ export interface ServerPort {
|
|
|
45
45
|
export type ManifestVisibility = 'all' | 'public' | 'private'
|
|
46
46
|
|
|
47
47
|
export interface ManifestPort {
|
|
48
|
-
|
|
48
|
+
/** Asynchronous: an extension's back-office code is built before it is listed (story 320). */
|
|
49
|
+
list(visibility: ManifestVisibility): Promise<ResponseOf<'GetManifestManifest'>>
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
export interface LanguageInput {
|