@adobe/helix-admin-support 2.1.32 → 2.2.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/CHANGELOG.md +14 -0
- package/docs/API.md +3 -1
- package/docs/README.md +2 -0
- package/docs/project-config-properties-metadata-oneof-0.md +15 -0
- package/docs/project-config-properties-metadata-oneof-1-items.md +15 -0
- package/docs/project-config-properties-metadata-oneof-1.md +15 -0
- package/docs/project-config-properties-metadata.md +21 -0
- package/docs/project-config.md +25 -0
- package/docs/project-config.schema.json +1 -1
- package/package.json +5 -5
- package/src/schemas/project-config.schema.json +14 -0
- package/types/project-config.d.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [2.2.0](https://github.com/adobe/helix-admin-support/compare/v2.1.33...v2.2.0) (2023-07-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add metadata to config ([#171](https://github.com/adobe/helix-admin-support/issues/171)) ([c402708](https://github.com/adobe/helix-admin-support/commit/c402708d0580ed8155810b61ffd627763c9b4f50))
|
|
7
|
+
|
|
8
|
+
## [2.1.33](https://github.com/adobe/helix-admin-support/compare/v2.1.32...v2.1.33) (2023-07-29)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update external fixes ([#170](https://github.com/adobe/helix-admin-support/issues/170)) ([c7893ed](https://github.com/adobe/helix-admin-support/commit/c7893edfd0463cf9fc4be9a1911dd78fe6d391b0))
|
|
14
|
+
|
|
1
15
|
## [2.1.32](https://github.com/adobe/helix-admin-support/compare/v2.1.31...v2.1.32) (2023-07-24)
|
|
2
16
|
|
|
3
17
|
|
package/docs/API.md
CHANGED
|
@@ -58,7 +58,8 @@ and stores it in the context as projectConfig.</p>
|
|
|
58
58
|
<dd><p>Checks if the response is valid and returns the helix config.</p>
|
|
59
59
|
</dd>
|
|
60
60
|
<dt><a href="#fetchHelixConfig">fetchHelixConfig(ctx, info, optional)</a> ⇒ <code>Promise.<HelixConfig></code></dt>
|
|
61
|
-
<dd><p>Retrieves the helix-config.json which is an aggregate from fstab.yaml and head.html
|
|
61
|
+
<dd><p>Retrieves the helix-config.json which is an aggregate from fstab.yaml and head.html.
|
|
62
|
+
Note: it always uses the branch <code>main</code>.</p>
|
|
62
63
|
</dd>
|
|
63
64
|
<dt><a href="#handleResponse">handleResponse(log, response, key)</a> ⇒ <code>Promise.<MountConfig></code></dt>
|
|
64
65
|
<dd><p>Checks if the response is valid and returns a IgnoreConfig.</p>
|
|
@@ -299,6 +300,7 @@ Checks if the response is valid and returns the helix config.
|
|
|
299
300
|
|
|
300
301
|
## fetchHelixConfig(ctx, info, optional) ⇒ <code>Promise.<HelixConfig></code>
|
|
301
302
|
Retrieves the helix-config.json which is an aggregate from fstab.yaml and head.html.
|
|
303
|
+
Note: it always uses the branch `main`.
|
|
302
304
|
|
|
303
305
|
**Kind**: global function
|
|
304
306
|
**Returns**: <code>Promise.<HelixConfig></code> - the helix-config or {@code null} if optional and not found.
|
package/docs/README.md
CHANGED
|
@@ -56,6 +56,8 @@
|
|
|
56
56
|
|
|
57
57
|
* [Untitled array in ProjectConfig](./project-config-properties-slack-oneof-1.md) – `https://ns.adobe.com/helix/config/project#/properties/slack/oneOf/1`
|
|
58
58
|
|
|
59
|
+
* [Untitled array in ProjectConfig](./project-config-properties-metadata-oneof-1.md) – `https://ns.adobe.com/helix/config/project#/properties/metadata/oneOf/1`
|
|
60
|
+
|
|
59
61
|
* [Untitled array in ProjectConfig](./project-config-properties-siteaccessconfig-properties-apikeyid-oneof-1.md) – `https://ns.adobe.com/helix/config/project#/properties/access/properties/apiKeyId/oneOf/1`
|
|
60
62
|
|
|
61
63
|
* [Untitled array in ProjectConfig](./project-config-properties-adminconfig-properties-apikeyid-oneof-1.md) – `https://ns.adobe.com/helix/config/project#/properties/admin/properties/apiKeyId/oneOf/1`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Untitled string in ProjectConfig Schema
|
|
2
|
+
|
|
3
|
+
```txt
|
|
4
|
+
https://ns.adobe.com/helix/config/project#/properties/metadata/oneOf/0
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
|
|
10
|
+
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------------------- |
|
|
11
|
+
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [project-config.schema.json\*](project-config.schema.json "open original schema") |
|
|
12
|
+
|
|
13
|
+
## 0 Type
|
|
14
|
+
|
|
15
|
+
`string`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Untitled string in ProjectConfig Schema
|
|
2
|
+
|
|
3
|
+
```txt
|
|
4
|
+
https://ns.adobe.com/helix/config/project#/properties/metadata/oneOf/1/items
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
|
|
10
|
+
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------------------- |
|
|
11
|
+
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [project-config.schema.json\*](project-config.schema.json "open original schema") |
|
|
12
|
+
|
|
13
|
+
## items Type
|
|
14
|
+
|
|
15
|
+
`string`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Untitled array in ProjectConfig Schema
|
|
2
|
+
|
|
3
|
+
```txt
|
|
4
|
+
https://ns.adobe.com/helix/config/project#/properties/metadata/oneOf/1
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
|
|
10
|
+
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------------------- |
|
|
11
|
+
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [project-config.schema.json\*](project-config.schema.json "open original schema") |
|
|
12
|
+
|
|
13
|
+
## 1 Type
|
|
14
|
+
|
|
15
|
+
`string[]`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Untitled undefined type in ProjectConfig Schema
|
|
2
|
+
|
|
3
|
+
```txt
|
|
4
|
+
https://ns.adobe.com/helix/config/project#/properties/metadata
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
source paths for metadata.
|
|
8
|
+
|
|
9
|
+
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
|
|
10
|
+
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------------------- |
|
|
11
|
+
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [project-config.schema.json\*](project-config.schema.json "open original schema") |
|
|
12
|
+
|
|
13
|
+
## metadata Type
|
|
14
|
+
|
|
15
|
+
merged type ([Details](project-config-properties-metadata.md))
|
|
16
|
+
|
|
17
|
+
one (and only one) of
|
|
18
|
+
|
|
19
|
+
* [Untitled string in ProjectConfig](project-config-properties-metadata-oneof-0.md "check type definition")
|
|
20
|
+
|
|
21
|
+
* [Untitled array in ProjectConfig](project-config-properties-metadata-oneof-1.md "check type definition")
|
package/docs/project-config.md
CHANGED
|
@@ -24,6 +24,7 @@ https://ns.adobe.com/helix/config/project
|
|
|
24
24
|
| [host](#host) | `string` | Optional | cannot be null | [ProjectConfig](project-config-properties-host.md "https://ns.adobe.com/helix/config/project#/properties/host") |
|
|
25
25
|
| [blueprint](#blueprint) | `string` | Optional | cannot be null | [ProjectConfig](project-config-properties-blueprint.md "https://ns.adobe.com/helix/config/project#/properties/blueprint") |
|
|
26
26
|
| [slack](#slack) | Merged | Optional | cannot be null | [ProjectConfig](project-config-properties-slack.md "https://ns.adobe.com/helix/config/project#/properties/slack") |
|
|
27
|
+
| [metadata](#metadata) | Merged | Optional | cannot be null | [ProjectConfig](project-config-properties-metadata.md "https://ns.adobe.com/helix/config/project#/properties/metadata") |
|
|
27
28
|
| [cdn](#cdn) | `object` | Optional | cannot be null | [ProjectConfig](project-config-cdn.md "https://ns.adobe.com/helix/config/cdn#/properties/cdn") |
|
|
28
29
|
| [access](#access) | `object` | Optional | cannot be null | [ProjectConfig](project-config-properties-siteaccessconfig.md "https://ns.adobe.com/helix/config/project#/properties/access") |
|
|
29
30
|
| [admin](#admin) | `object` | Optional | cannot be null | [ProjectConfig](project-config-properties-adminconfig.md "https://ns.adobe.com/helix/config/project#/properties/admin") |
|
|
@@ -156,6 +157,30 @@ one (and only one) of
|
|
|
156
157
|
|
|
157
158
|
* [Untitled array in ProjectConfig](project-config-properties-slack-oneof-1.md "check type definition")
|
|
158
159
|
|
|
160
|
+
## metadata
|
|
161
|
+
|
|
162
|
+
source paths for metadata.
|
|
163
|
+
|
|
164
|
+
`metadata`
|
|
165
|
+
|
|
166
|
+
* is optional
|
|
167
|
+
|
|
168
|
+
* Type: merged type ([Details](project-config-properties-metadata.md))
|
|
169
|
+
|
|
170
|
+
* cannot be null
|
|
171
|
+
|
|
172
|
+
* defined in: [ProjectConfig](project-config-properties-metadata.md "https://ns.adobe.com/helix/config/project#/properties/metadata")
|
|
173
|
+
|
|
174
|
+
### metadata Type
|
|
175
|
+
|
|
176
|
+
merged type ([Details](project-config-properties-metadata.md))
|
|
177
|
+
|
|
178
|
+
one (and only one) of
|
|
179
|
+
|
|
180
|
+
* [Untitled string in ProjectConfig](project-config-properties-metadata-oneof-0.md "check type definition")
|
|
181
|
+
|
|
182
|
+
* [Untitled array in ProjectConfig](project-config-properties-metadata-oneof-1.md "check type definition")
|
|
183
|
+
|
|
159
184
|
## cdn
|
|
160
185
|
|
|
161
186
|
The CDN config
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"meta:license":["Copyright 2023 Adobe. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the \"License\");","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0","","Unless required by applicable law or agreed to in writing, software distributed under","the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS","OF ANY KIND, either express or implied. See the License for the specific language","governing permissions and limitations under the License."],"$id":"https://ns.adobe.com/helix/config/project","$schema":"http://json-schema.org/draft-07/schema#","$defs":{"emailglob":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"matches one or several users or group of users"}},"title":"ProjectConfig","type":"object","properties":{"name":{"type":"string","description":"Name of the project used by the slack bot when reporting."},"project":{"type":"string","description":"Name of the project used by the sidekick."},"timezone":{"type":"string","description":"Timezone to be used by the slack bot when reporting times.","examples":["Europe/Zurich"]},"host":{"type":"string","description":"Production host use by the slack bot to display project information."},"blueprint":{"type":"string","description":"configuration blueprint repository in the owner/repo format.","examples":["adobe/helix-website"]},"slack":{"description":"the slack teamId/channelID(s) where the slack bot is used.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"cdn":{"description":"The CDN config","$ref":"./project-config-cdn.schema.json"},"access":{"type":"object","title":"SiteAccessConfig","properties":{"allow":{"description":"The email glob of the users that are allowed.","$ref":"#/$defs/emailglob"},"apiKeyId":{"description":"the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"require":{"type":"object","properties":{"repository":{"description":"The list of owner/repo pointers to projects that are allowed to use this content.","examples":["adobe/*","hlxsites/wknd"],"$ref":"#/$defs/emailglob"}},"required":["repository"],"additionalProperties":false}},"required":["allow"],"additionalProperties":false},"admin":{"title":"AdminConfig","type":"object","properties":{"role":{"title":"Role","type":"object","properties":{"author":{"description":"The email glob of the users with author role.","$ref":"#/$defs/emailglob"},"publish":{"description":"The email glob of the users with publish role.","$ref":"#/$defs/emailglob"}},"required":["role"],"additionalProperties":false},"apiKeyId":{"description":"the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"additionalProperties":false}},"additionalProperties":false}
|
|
1
|
+
{"meta:license":["Copyright 2023 Adobe. All rights reserved.","This file is licensed to you under the Apache License, Version 2.0 (the \"License\");","you may not use this file except in compliance with the License. You may obtain a copy","of the License at http://www.apache.org/licenses/LICENSE-2.0","","Unless required by applicable law or agreed to in writing, software distributed under","the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS","OF ANY KIND, either express or implied. See the License for the specific language","governing permissions and limitations under the License."],"$id":"https://ns.adobe.com/helix/config/project","$schema":"http://json-schema.org/draft-07/schema#","$defs":{"emailglob":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"matches one or several users or group of users"}},"title":"ProjectConfig","type":"object","properties":{"name":{"type":"string","description":"Name of the project used by the slack bot when reporting."},"project":{"type":"string","description":"Name of the project used by the sidekick."},"timezone":{"type":"string","description":"Timezone to be used by the slack bot when reporting times.","examples":["Europe/Zurich"]},"host":{"type":"string","description":"Production host use by the slack bot to display project information."},"blueprint":{"type":"string","description":"configuration blueprint repository in the owner/repo format.","examples":["adobe/helix-website"]},"slack":{"description":"the slack teamId/channelID(s) where the slack bot is used.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"metadata":{"description":"source paths for metadata.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"cdn":{"description":"The CDN config","$ref":"./project-config-cdn.schema.json"},"access":{"type":"object","title":"SiteAccessConfig","properties":{"allow":{"description":"The email glob of the users that are allowed.","$ref":"#/$defs/emailglob"},"apiKeyId":{"description":"the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"require":{"type":"object","properties":{"repository":{"description":"The list of owner/repo pointers to projects that are allowed to use this content.","examples":["adobe/*","hlxsites/wknd"],"$ref":"#/$defs/emailglob"}},"required":["repository"],"additionalProperties":false}},"required":["allow"],"additionalProperties":false},"admin":{"title":"AdminConfig","type":"object","properties":{"role":{"title":"Role","type":"object","properties":{"author":{"description":"The email glob of the users with author role.","$ref":"#/$defs/emailglob"},"publish":{"description":"The email glob of the users with publish role.","$ref":"#/$defs/emailglob"}},"required":["role"],"additionalProperties":false},"apiKeyId":{"description":"the id of the API key(s). this is used to validate the API KEYS and allows to invalidate them.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"additionalProperties":false}},"additionalProperties":false}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-admin-support",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Helix Admin Support Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@adobe/fetch": "4.0.13",
|
|
38
38
|
"@adobe/helix-shared-config": "10.3.2",
|
|
39
39
|
"@adobe/helix-shared-utils": "3.0.0",
|
|
40
|
-
"@aws-sdk/client-s3": "3.
|
|
41
|
-
"@aws-sdk/client-sqs": "3.
|
|
40
|
+
"@aws-sdk/client-s3": "3.379.1",
|
|
41
|
+
"@aws-sdk/client-sqs": "3.379.1",
|
|
42
42
|
"@aws-sdk/node-http-handler": "3.370.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@semantic-release/changelog": "6.0.3",
|
|
48
48
|
"@semantic-release/git": "10.0.1",
|
|
49
49
|
"@semantic-release/npm": "10.0.4",
|
|
50
|
-
"c8": "8.0.
|
|
51
|
-
"eslint": "8.
|
|
50
|
+
"c8": "8.0.1",
|
|
51
|
+
"eslint": "8.46.0",
|
|
52
52
|
"husky": "8.0.3",
|
|
53
53
|
"jsdoc-to-markdown": "8.0.0",
|
|
54
54
|
"json-schema-to-typescript": "13.0.2",
|
|
@@ -67,6 +67,20 @@
|
|
|
67
67
|
}
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
|
+
"metadata": {
|
|
71
|
+
"description": "source paths for metadata.",
|
|
72
|
+
"oneOf": [
|
|
73
|
+
{
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "array",
|
|
78
|
+
"items": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
70
84
|
"cdn": {
|
|
71
85
|
"description": "The CDN config",
|
|
72
86
|
"$ref": "./project-config-cdn.schema.json"
|
|
@@ -37,6 +37,10 @@ export interface ProjectConfig {
|
|
|
37
37
|
* the slack teamId/channelID(s) where the slack bot is used.
|
|
38
38
|
*/
|
|
39
39
|
slack?: string | string[];
|
|
40
|
+
/**
|
|
41
|
+
* source paths for metadata.
|
|
42
|
+
*/
|
|
43
|
+
metadata?: string | string[];
|
|
40
44
|
cdn?: ProjectCDNConfig;
|
|
41
45
|
access?: SiteAccessConfig;
|
|
42
46
|
admin?: AdminConfig;
|