@adobe/helix-admin-support 1.6.31 → 1.6.33

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 (74) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/docs/API.md +434 -5
  3. package/docs/README.md +45 -0
  4. package/docs/project-config-all-properties-config-properties-data.md +15 -0
  5. package/docs/project-config-all-properties-config-properties-lastmodified.md +15 -0
  6. package/docs/project-config-all-properties-config.md +58 -0
  7. package/docs/project-config-all-properties-headers-properties-data.md +15 -0
  8. package/docs/project-config-all-properties-headers-properties-lastmodified.md +15 -0
  9. package/docs/project-config-all-properties-headers.md +58 -0
  10. package/docs/project-config-all-properties-metadata-properties-data.md +15 -0
  11. package/docs/project-config-all-properties-metadata-properties-lastmodified.md +15 -0
  12. package/docs/project-config-all-properties-metadata.md +58 -0
  13. package/docs/project-config-all-properties-projectconfigentry-properties-data.md +15 -0
  14. package/docs/project-config-all-properties-projectconfigentry-properties-lastmodified.md +15 -0
  15. package/docs/project-config-all-properties-projectconfigentry.md +58 -0
  16. package/docs/project-config-all.md +77 -0
  17. package/docs/project-config-all.schema.json +1 -0
  18. package/docs/project-config-cdn-defs-stringorarray-oneof-0.md +15 -0
  19. package/docs/project-config-cdn-defs-stringorarray-oneof-1-items.md +15 -0
  20. package/docs/project-config-cdn-defs-stringorarray-oneof-1.md +15 -0
  21. package/docs/project-config-cdn-defs-stringorarray.md +21 -0
  22. package/docs/project-config-cdn-defs.md +15 -0
  23. package/docs/project-config-cdn-properties-prod-oneof-akamaiconfig-properties-accesstoken.md +15 -0
  24. package/docs/project-config-cdn-properties-prod-oneof-akamaiconfig-properties-clientsecret.md +15 -0
  25. package/docs/project-config-cdn-properties-prod-oneof-akamaiconfig-properties-clienttoken.md +15 -0
  26. package/docs/project-config-cdn-properties-prod-oneof-akamaiconfig-properties-endpoint.md +15 -0
  27. package/docs/project-config-cdn-properties-prod-oneof-akamaiconfig-properties-host.md +15 -0
  28. package/docs/project-config-cdn-properties-prod-oneof-akamaiconfig-properties-type.md +23 -0
  29. package/docs/project-config-cdn-properties-prod-oneof-akamaiconfig.md +167 -0
  30. package/docs/project-config-cdn-properties-prod-oneof-cloudflareconfig-properties-apitoken.md +15 -0
  31. package/docs/project-config-cdn-properties-prod-oneof-cloudflareconfig-properties-host.md +15 -0
  32. package/docs/project-config-cdn-properties-prod-oneof-cloudflareconfig-properties-origin.md +15 -0
  33. package/docs/project-config-cdn-properties-prod-oneof-cloudflareconfig-properties-plan.md +15 -0
  34. package/docs/project-config-cdn-properties-prod-oneof-cloudflareconfig-properties-type.md +23 -0
  35. package/docs/project-config-cdn-properties-prod-oneof-cloudflareconfig-properties-zoneid.md +15 -0
  36. package/docs/project-config-cdn-properties-prod-oneof-cloudflareconfig.md +167 -0
  37. package/docs/project-config-cdn-properties-prod-oneof-fastlyconfig-properties-authtoken.md +15 -0
  38. package/docs/project-config-cdn-properties-prod-oneof-fastlyconfig-properties-host.md +15 -0
  39. package/docs/project-config-cdn-properties-prod-oneof-fastlyconfig-properties-serviceid.md +15 -0
  40. package/docs/project-config-cdn-properties-prod-oneof-fastlyconfig-properties-type.md +23 -0
  41. package/docs/project-config-cdn-properties-prod-oneof-fastlyconfig.md +129 -0
  42. package/docs/project-config-cdn-properties-prod-oneof-managedconfig-properties-host.md +15 -0
  43. package/docs/project-config-cdn-properties-prod-oneof-managedconfig-properties-type.md +23 -0
  44. package/docs/project-config-cdn-properties-prod-oneof-managedconfig.md +91 -0
  45. package/docs/project-config-cdn-properties-prod.md +25 -0
  46. package/docs/project-config-cdn.md +62 -0
  47. package/docs/project-config-cdn.schema.json +1 -0
  48. package/docs/project-config-defs-emailglob-oneof-0.md +15 -0
  49. package/docs/project-config-defs-emailglob-oneof-1-items.md +15 -0
  50. package/docs/project-config-defs-emailglob-oneof-1.md +15 -0
  51. package/docs/project-config-defs-emailglob.md +21 -0
  52. package/docs/project-config-defs.md +15 -0
  53. package/docs/project-config-properties-adminconfig-properties-role.md +70 -0
  54. package/docs/project-config-properties-adminconfig.md +39 -0
  55. package/docs/project-config-properties-host.md +15 -0
  56. package/docs/project-config-properties-name.md +15 -0
  57. package/docs/project-config-properties-project.md +15 -0
  58. package/docs/project-config-properties-siteaccessconfig.md +45 -0
  59. package/docs/project-config-properties-slack-oneof-0.md +15 -0
  60. package/docs/project-config-properties-slack-oneof-1-items.md +15 -0
  61. package/docs/project-config-properties-slack-oneof-1.md +15 -0
  62. package/docs/project-config-properties-slack.md +21 -0
  63. package/docs/project-config-properties-timezone.md +22 -0
  64. package/docs/project-config.md +198 -0
  65. package/docs/project-config.schema.json +1 -0
  66. package/package.json +12 -7
  67. package/src/fetch-config-all.d.ts +1 -32
  68. package/src/fetch-config.d.ts +2 -77
  69. package/src/fetch-ignore.js +0 -2
  70. package/src/schemas/project-config-all.schema.json +63 -0
  71. package/src/schemas/project-config-cdn.schema.json +148 -0
  72. package/src/schemas/project-config.schema.json +108 -0
  73. package/types/project-config-all.d.ts +42 -0
  74. package/types/project-config.d.ts +127 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.6.33](https://github.com/adobe/helix-admin-support/compare/v1.6.32...v1.6.33) (2023-03-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency @adobe/fetch to v4.0.6 ([ada2f53](https://github.com/adobe/helix-admin-support/commit/ada2f53f20c8402a86fecaf10e909e34373f69c7))
7
+
8
+ ## [1.6.32](https://github.com/adobe/helix-admin-support/compare/v1.6.31...v1.6.32) (2023-03-18)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update external fixes ([adc71e1](https://github.com/adobe/helix-admin-support/commit/adc71e105061898b6ed242f7d93f952565c9f374))
14
+
1
15
  ## [1.6.31](https://github.com/adobe/helix-admin-support/compare/v1.6.30...v1.6.31) (2023-03-14)
2
16
 
3
17
 
package/docs/API.md CHANGED
@@ -1,12 +1,441 @@
1
- <a name="main"></a>
1
+ ## Classes
2
2
 
3
- ## main(name) ⇒ <code>string</code>
4
- This is the main function
3
+ <dl>
4
+ <dt><a href="#BatchedQueueClient">BatchedQueueClient</a></dt>
5
+ <dd><p>Creates a new BatchedQueueClient. It allows to read and write from a SQS queue in batches,
6
+ supporting larger batch sizes than the default of 10. If a message gets too big for SQS it is
7
+ automatically swapped out to S3.</p>
8
+ </dd>
9
+ </dl>
10
+
11
+ ## Constants
12
+
13
+ <dl>
14
+ <dt><a href="#INDEX_CONFIGURATION_NAME">INDEX_CONFIGURATION_NAME</a></dt>
15
+ <dd><p>Name of the indexing configuration, subject to be renamed.</p>
16
+ </dd>
17
+ </dl>
18
+
19
+ ## Functions
20
+
21
+ <dl>
22
+ <dt><a href="#getContentBusId">getContentBusId(ctx, opts, optional)</a> ⇒ <code>Promise.&lt;string&gt;</code></dt>
23
+ <dd><p>Retrieves the content bus id either from the context or by reading the fstab.</p>
24
+ </dd>
25
+ <dt><a href="#handleResponse">handleResponse(log, response, key, type)</a> ⇒ <code>Promise.&lt;ConfigAll&gt;</code></dt>
26
+ <dd><p>Checks if the response is valid and returns the project config.</p>
27
+ </dd>
28
+ <dt><a href="#fetchConfigAll">fetchConfigAll(ctx, opts)</a> ⇒ <code>Promise.&lt;ConfigAll&gt;</code></dt>
29
+ <dd><p>Retrieves the project config from the underlying storage
30
+ and stores it in the context as projectConfig.</p>
31
+ </dd>
32
+ <dt><a href="#handleResponse">handleResponse(log, response, key, type)</a> ⇒ <code>Promise.&lt;ProjectConfig&gt;</code></dt>
33
+ <dd><p>Checks if the response is valid and returns the project config.</p>
34
+ </dd>
35
+ <dt><a href="#fetchProjectConfig">fetchProjectConfig(ctx, opts)</a> ⇒ <code>Promise.&lt;ProjectConfig&gt;</code></dt>
36
+ <dd><p>Retrieves the project config from the underlying storage
37
+ and stores it in the context as projectConfig.</p>
38
+ </dd>
39
+ <dt><a href="#handleResponse">handleResponse(log, response, key, type)</a> ⇒ <code>Promise.&lt;ProjectConfig&gt;</code></dt>
40
+ <dd><p>Checks if the response is valid and returns the project config.</p>
41
+ </dd>
42
+ <dt><a href="#fetchCrontab">fetchCrontab(ctx, opts)</a> ⇒ <code>Promise.&lt;ProjectConfig&gt;</code></dt>
43
+ <dd><p>Retrieves the project config from the underlying storage
44
+ and stores it in the context as projectConfig.</p>
45
+ </dd>
46
+ <dt><a href="#handleResponse">handleResponse(log, response, key, type)</a> ⇒ <code>Promise.&lt;MountConfig&gt;</code></dt>
47
+ <dd><p>Checks if the response is valid and returns a mount config.</p>
48
+ </dd>
49
+ <dt><a href="#fetchFstab">fetchFstab(ctx, opts, optional)</a> ⇒ <code>Promise.&lt;MountConfig&gt;</code></dt>
50
+ <dd><p>Retrieves the fstab from the underlying storage and stores it in the context as mountConfig.</p>
51
+ </dd>
52
+ <dt><a href="#handleResponse">handleResponse(log, response, key)</a> ⇒ <code>Promise.&lt;MountConfig&gt;</code></dt>
53
+ <dd><p>Checks if the response is valid and returns a IgnoreConfig.</p>
54
+ </dd>
55
+ <dt><a href="#fetchIgnore">fetchIgnore(ctx, opts)</a> ⇒ <code>Promise.&lt;IgnoreConfig&gt;</code></dt>
56
+ <dd><p>Retrieves the hlxignore from github and stores it in the context as IgnoreConfig.
57
+ If 404 is encountered, returns an empty IgnoreConfig that considers nothing ignored.</p>
58
+ </dd>
59
+ <dt><a href="#handleResponse">handleResponse(log, response, key, type)</a> ⇒ <code>Promise.&lt;IndexConfig&gt;</code></dt>
60
+ <dd><p>Checks if the response is valid and returns an index config.</p>
61
+ </dd>
62
+ <dt><a href="#fetchIndex">fetchIndex(ctx, opts, optional)</a> ⇒ <code>Promise.&lt;IndexConfig&gt;</code></dt>
63
+ <dd><p>Retrieves the indexing configuration from the underlying storage and stores it in the context as
64
+ indexConfig.</p>
65
+ </dd>
66
+ <dt><a href="#fetchS3">fetchS3(bucketId, key, head)</a> ⇒ <code>Promise.&lt;Response&gt;</code></dt>
67
+ <dd><p>Fetches content from s3</p>
68
+ </dd>
69
+ <dt><a href="#handleResponse">handleResponse(log, response, key, type)</a> ⇒ <code>Promise.&lt;SitemapConfig&gt;</code></dt>
70
+ <dd><p>Checks if the response is valid and returns a sitemap config.</p>
71
+ </dd>
72
+ <dt><a href="#fetchSitemap">fetchSitemap(ctx, opts, optional)</a> ⇒ <code>Promise.&lt;SitemapConfig&gt;</code></dt>
73
+ <dd><p>Retrieves the sitemap from the underlying storage and stores it in the context as sitemapConfig.</p>
74
+ </dd>
75
+ <dt><a href="#flatJson2object">flatJson2object(rows, [keyName], [valueName])</a></dt>
76
+ <dd><p>Converts a config row-based name/value pair array with dotted key notation to an object.</p>
77
+ <p>example:</p>
78
+ <pre><code>host: www.adobe.com
79
+ document.level: 42,
80
+ document.title: hello
81
+ document.body.status: 200
82
+ acl.allow: /foo
83
+ acl.allow: /bar
84
+ cnd.0.type: fastly
85
+ cnd.0.host: www.adobe.com
86
+ cnd.1.type: cloudflare
87
+ </code></pre>
88
+ <p>becomes:</p>
89
+ <pre><code>{
90
+ host: &#39;www.adobe.com&#39;,
91
+ document: {
92
+ level: 42,
93
+ title: &#39;hello&#39;,
94
+ body: {
95
+ status: 200,
96
+ }
97
+ },
98
+ acl: {
99
+ allow: [&#39;/foo&#39;, &#39;/bar],
100
+ }
101
+ cnd: [
102
+ { type: &#39;fastly&#39;, host: &#39;www.adobe.com&#39; },
103
+ { type: &#39;cloudflare&#39; },
104
+ ]
105
+ }
106
+ </code></pre>
107
+ </dd>
108
+ <dt><a href="#error">error(message, status)</a> ⇒ <code>Response</code></dt>
109
+ <dd><p>Generates an error response</p>
110
+ </dd>
111
+ </dl>
112
+
113
+ ## Typedefs
114
+
115
+ <dl>
116
+ <dt><a href="#BatchedQueueClientOpts">BatchedQueueClientOpts</a></dt>
117
+ <dd></dd>
118
+ </dl>
119
+
120
+ <a name="INDEX_CONFIGURATION_NAME"></a>
121
+
122
+ ## INDEX\_CONFIGURATION\_NAME
123
+ Name of the indexing configuration, subject to be renamed.
124
+
125
+ **Kind**: global constant
126
+ <a name="getContentBusId"></a>
127
+
128
+ ## getContentBusId(ctx, opts, optional) ⇒ <code>Promise.&lt;string&gt;</code>
129
+ Retrieves the content bus id either from the context or by reading the fstab.
130
+
131
+ **Kind**: global function
132
+ **Returns**: <code>Promise.&lt;string&gt;</code> - the content bus id
133
+
134
+ | Param | Type | Description |
135
+ | --- | --- | --- |
136
+ | ctx | <code>AdminContext</code> | the context |
137
+ | opts | <code>PathInfo</code> | lookup options |
138
+ | optional | <code>boolean</code> | returns {@code null} if the contentBusId can't be computed due to missing fstab. |
139
+
140
+ <a name="handleResponse"></a>
141
+
142
+ ## handleResponse(log, response, key, type) ⇒ <code>Promise.&lt;ConfigAll&gt;</code>
143
+ Checks if the response is valid and returns the project config.
144
+
145
+ **Kind**: global function
146
+ **Returns**: <code>Promise.&lt;ConfigAll&gt;</code> - the helix project config or null
147
+
148
+ | Param | Type | Description |
149
+ | --- | --- | --- |
150
+ | log | <code>Console</code> | logger |
151
+ | response | <code>Response</code> | content response from the storage |
152
+ | key | <code>string</code> | storage key (logging information) |
153
+ | type | <code>string</code> | type of storage (logging information) |
154
+
155
+ <a name="fetchConfigAll"></a>
156
+
157
+ ## fetchConfigAll(ctx, opts) ⇒ <code>Promise.&lt;ConfigAll&gt;</code>
158
+ Retrieves the project config from the underlying storage
159
+ and stores it in the context as projectConfig.
160
+
161
+ **Kind**: global function
162
+ **Returns**: <code>Promise.&lt;ConfigAll&gt;</code> - the project configuration
163
+
164
+ | Param | Type | Description |
165
+ | --- | --- | --- |
166
+ | ctx | <code>AdminContext</code> | the context |
167
+ | opts | <code>PathInfo</code> | lookup options |
168
+
169
+ <a name="handleResponse"></a>
170
+
171
+ ## handleResponse(log, response, key, type) ⇒ <code>Promise.&lt;ProjectConfig&gt;</code>
172
+ Checks if the response is valid and returns the project config.
173
+
174
+ **Kind**: global function
175
+ **Returns**: <code>Promise.&lt;ProjectConfig&gt;</code> - the helix project config or null
176
+
177
+ | Param | Type | Description |
178
+ | --- | --- | --- |
179
+ | log | <code>Console</code> | logger |
180
+ | response | <code>Response</code> | content response from the storage |
181
+ | key | <code>string</code> | storage key (logging information) |
182
+ | type | <code>string</code> | type of storage (logging information) |
183
+
184
+ <a name="fetchProjectConfig"></a>
185
+
186
+ ## fetchProjectConfig(ctx, opts) ⇒ <code>Promise.&lt;ProjectConfig&gt;</code>
187
+ Retrieves the project config from the underlying storage
188
+ and stores it in the context as projectConfig.
189
+
190
+ **Kind**: global function
191
+ **Returns**: <code>Promise.&lt;ProjectConfig&gt;</code> - the project configuration
192
+
193
+ | Param | Type | Description |
194
+ | --- | --- | --- |
195
+ | ctx | <code>AdminContext</code> | the context |
196
+ | opts | <code>PathInfo</code> | lookup options |
197
+
198
+ <a name="handleResponse"></a>
199
+
200
+ ## handleResponse(log, response, key, type) ⇒ <code>Promise.&lt;ProjectConfig&gt;</code>
201
+ Checks if the response is valid and returns the project config.
202
+
203
+ **Kind**: global function
204
+ **Returns**: <code>Promise.&lt;ProjectConfig&gt;</code> - the helix project config or null
205
+
206
+ | Param | Type | Description |
207
+ | --- | --- | --- |
208
+ | log | <code>Logger</code> | logger |
209
+ | response | <code>Response</code> | content response from the storage |
210
+ | key | <code>string</code> | storage key (logging information) |
211
+ | type | <code>string</code> | type of storage (logging information) |
212
+
213
+ <a name="fetchCrontab"></a>
214
+
215
+ ## fetchCrontab(ctx, opts) ⇒ <code>Promise.&lt;ProjectConfig&gt;</code>
216
+ Retrieves the project config from the underlying storage
217
+ and stores it in the context as projectConfig.
218
+
219
+ **Kind**: global function
220
+ **Returns**: <code>Promise.&lt;ProjectConfig&gt;</code> - the project configuration
221
+
222
+ | Param | Type | Description |
223
+ | --- | --- | --- |
224
+ | ctx | <code>AdminContext</code> | the context |
225
+ | opts | <code>LookupOptions</code> | lookup options |
226
+
227
+ <a name="handleResponse"></a>
228
+
229
+ ## handleResponse(log, response, key, type) ⇒ <code>Promise.&lt;MountConfig&gt;</code>
230
+ Checks if the response is valid and returns a mount config.
231
+
232
+ **Kind**: global function
233
+ **Returns**: <code>Promise.&lt;MountConfig&gt;</code> - the mount config or null
234
+
235
+ | Param | Type | Description |
236
+ | --- | --- | --- |
237
+ | log | <code>Logger</code> | logger |
238
+ | response | <code>Response</code> | content response from the storage |
239
+ | key | <code>string</code> | storage key (logging information) |
240
+ | type | <code>string</code> | type of storage (logging information |
241
+
242
+ <a name="fetchFstab"></a>
243
+
244
+ ## fetchFstab(ctx, opts, optional) ⇒ <code>Promise.&lt;MountConfig&gt;</code>
245
+ Retrieves the fstab from the underlying storage and stores it in the context as mountConfig.
246
+
247
+ **Kind**: global function
248
+ **Returns**: <code>Promise.&lt;MountConfig&gt;</code> - the fstab
249
+
250
+ | Param | Type | Description |
251
+ | --- | --- | --- |
252
+ | ctx | <code>AdminContext</code> | the context |
253
+ | opts | <code>LookupOptions</code> | lookup options |
254
+ | optional | <code>boolean</code> | if {@code true}, no error is thrown if the fstab can't be retrieved |
255
+
256
+ <a name="handleResponse"></a>
257
+
258
+ ## handleResponse(log, response, key) ⇒ <code>Promise.&lt;MountConfig&gt;</code>
259
+ Checks if the response is valid and returns a IgnoreConfig.
260
+
261
+ **Kind**: global function
262
+ **Returns**: <code>Promise.&lt;MountConfig&gt;</code> - the IgnoreConfig
263
+ **Throws**:
264
+
265
+ - <code>Error(&#x27;Unable to fetch hlxignore&#x27;)</code>
266
+
267
+
268
+ | Param | Type | Description |
269
+ | --- | --- | --- |
270
+ | log | <code>Logger</code> | logger |
271
+ | response | <code>Response</code> | content response from the storage |
272
+ | key | <code>string</code> | storage key (logging information) |
273
+
274
+ <a name="fetchIgnore"></a>
275
+
276
+ ## fetchIgnore(ctx, opts) ⇒ <code>Promise.&lt;IgnoreConfig&gt;</code>
277
+ Retrieves the hlxignore from github and stores it in the context as IgnoreConfig.
278
+ If 404 is encountered, returns an empty IgnoreConfig that considers nothing ignored.
279
+
280
+ **Kind**: global function
281
+ **Returns**: <code>Promise.&lt;IgnoreConfig&gt;</code> - the IgnoreConfig
282
+
283
+ | Param | Type | Description |
284
+ | --- | --- | --- |
285
+ | ctx | <code>AdminContext</code> | the context |
286
+ | opts | <code>LookupOptions</code> | lookup options |
287
+
288
+ <a name="handleResponse"></a>
289
+
290
+ ## handleResponse(log, response, key, type) ⇒ <code>Promise.&lt;IndexConfig&gt;</code>
291
+ Checks if the response is valid and returns an index config.
292
+
293
+ **Kind**: global function
294
+ **Returns**: <code>Promise.&lt;IndexConfig&gt;</code> - the index config or null
295
+
296
+ | Param | Type | Description |
297
+ | --- | --- | --- |
298
+ | log | <code>Logger</code> | logger |
299
+ | response | <code>Response</code> | content response from the storage |
300
+ | key | <code>string</code> | storage key (logging information) |
301
+ | type | <code>string</code> | type of storage (logging information |
302
+
303
+ <a name="fetchIndex"></a>
304
+
305
+ ## fetchIndex(ctx, opts, optional) ⇒ <code>Promise.&lt;IndexConfig&gt;</code>
306
+ Retrieves the indexing configuration from the underlying storage and stores it in the context as
307
+ indexConfig.
308
+
309
+ **Kind**: global function
310
+ **Returns**: <code>Promise.&lt;IndexConfig&gt;</code> - the index config
311
+
312
+ | Param | Type | Description |
313
+ | --- | --- | --- |
314
+ | ctx | <code>AdminContext</code> | the context |
315
+ | opts | <code>LookupOptions</code> | lookup options |
316
+ | optional | <code>boolean</code> | if {@code true}, no error is thrown if the config can't be retrieved |
317
+
318
+ <a name="fetchS3"></a>
319
+
320
+ ## fetchS3(bucketId, key, head) ⇒ <code>Promise.&lt;Response&gt;</code>
321
+ Fetches content from s3
322
+
323
+ **Kind**: global function
324
+ **Returns**: <code>Promise.&lt;Response&gt;</code> - fetch api response
325
+ **Oaram**: <code>AdminContext</code> context the admin context
326
+
327
+ | Param | Type | Description |
328
+ | --- | --- | --- |
329
+ | bucketId | <code>string</code> | bucket id |
330
+ | key | <code>string</code> | the resource key |
331
+ | head | <code>boolean</code> | flag indicating to create a head request |
332
+
333
+ <a name="handleResponse"></a>
334
+
335
+ ## handleResponse(log, response, key, type) ⇒ <code>Promise.&lt;SitemapConfig&gt;</code>
336
+ Checks if the response is valid and returns a sitemap config.
337
+
338
+ **Kind**: global function
339
+ **Returns**: <code>Promise.&lt;SitemapConfig&gt;</code> - the sitemap config or null
340
+
341
+ | Param | Type | Description |
342
+ | --- | --- | --- |
343
+ | log | <code>Logger</code> | logger |
344
+ | response | <code>Response</code> | content response from the storage |
345
+ | key | <code>string</code> | storage key (logging information) |
346
+ | type | <code>string</code> | type of storage (logging information |
347
+
348
+ <a name="fetchSitemap"></a>
349
+
350
+ ## fetchSitemap(ctx, opts, optional) ⇒ <code>Promise.&lt;SitemapConfig&gt;</code>
351
+ Retrieves the sitemap from the underlying storage and stores it in the context as sitemapConfig.
352
+
353
+ **Kind**: global function
354
+ **Returns**: <code>Promise.&lt;SitemapConfig&gt;</code> - the sitemap configuration
355
+
356
+ | Param | Type | Description |
357
+ | --- | --- | --- |
358
+ | ctx | <code>AdminContext</code> | the context |
359
+ | opts | <code>LookupOptions</code> | lookup options |
360
+ | optional | <code>boolean</code> | if {@code true}, no error is thrown if the config can't be retrieved |
361
+
362
+ <a name="flatJson2object"></a>
363
+
364
+ ## flatJson2object(rows, [keyName], [valueName])
365
+ Converts a config row-based name/value pair array with dotted key notation to an object.
366
+
367
+ example:
368
+
369
+ ```
370
+ host: www.adobe.com
371
+ document.level: 42,
372
+ document.title: hello
373
+ document.body.status: 200
374
+ acl.allow: /foo
375
+ acl.allow: /bar
376
+ cnd.0.type: fastly
377
+ cnd.0.host: www.adobe.com
378
+ cnd.1.type: cloudflare
379
+ ```
380
+
381
+ becomes:
382
+
383
+ ```
384
+ {
385
+ host: 'www.adobe.com',
386
+ document: {
387
+ level: 42,
388
+ title: 'hello',
389
+ body: {
390
+ status: 200,
391
+ }
392
+ },
393
+ acl: {
394
+ allow: ['/foo', '/bar],
395
+ }
396
+ cnd: [
397
+ { type: 'fastly', host: 'www.adobe.com' },
398
+ { type: 'cloudflare' },
399
+ ]
400
+ }
401
+ ```
5
402
 
6
403
  **Kind**: global function
7
- **Returns**: <code>string</code> - a greeting
404
+
405
+ | Param | Type | Default | Description |
406
+ | --- | --- | --- | --- |
407
+ | rows | <code>Array.&lt;object&gt;</code> | | array of columns |
408
+ | [keyName] | <code>string</code> | <code>&quot;&#x27;key&#x27;&quot;</code> | name of the key column. |
409
+ | [valueName] | <code>string</code> | <code>&quot;&#x27;value&#x27;&quot;</code> | name of the value column. |
410
+
411
+ <a name="error"></a>
412
+
413
+ ## error(message, status) ⇒ <code>Response</code>
414
+ Generates an error response
415
+
416
+ **Kind**: global function
417
+ **Returns**: <code>Response</code> - A response object.
8
418
 
9
419
  | Param | Type | Description |
10
420
  | --- | --- | --- |
11
- | name | <code>string</code> | name of the person to greet |
421
+ | message | <code>string</code> | error message |
422
+ | status | <code>number</code> | error code. |
423
+
424
+ <a name="BatchedQueueClientOpts"></a>
425
+
426
+ ## BatchedQueueClientOpts
427
+ **Kind**: global typedef
428
+ **Properties**
429
+
430
+ | Name | Type | Default | Description |
431
+ | --- | --- | --- | --- |
432
+ | [log] | <code>Console</code> | <code>Console</code> | Console like logger |
433
+ | [maxSqsPollTime] | <code>number</code> | <code>20</code> | Time to poll for messages |
434
+ | inQueue | <code>string</code> | | Name of the receiving queue |
435
+ | outQueue | <code>string</code> | | Name of the output queue |
436
+ | s3ClientOpts | <code>object</code> | | S3 client options |
437
+ | sqsClientOpts | <code>object</code> | | SQS client options |
438
+ | headerKeys | <code>Array.&lt;string&gt;</code> | | Name of the properties that common to all message properties |
439
+ | swapBucket | <code>string</code> | | Name of the bucket used for swap space |
440
+ | swapPrefix | <code>string</code> | | Prefix for the swap objects |
12
441
 
package/docs/README.md ADDED
@@ -0,0 +1,45 @@
1
+ # README
2
+
3
+ ## Top-level Schemas
4
+
5
+ * [ConfigAll](./project-config-all.md) – `https://ns.adobe.com/helix/config/all`
6
+
7
+ * [ProjectCDNConfig](./project-config-cdn.md) – `https://ns.adobe.com/helix/config/cdn`
8
+
9
+ * [ProjectConfig](./project-config.md) – `https://ns.adobe.com/helix/config/project`
10
+
11
+ ## Other Schemas
12
+
13
+ ### Objects
14
+
15
+ * [AdminConfig](./project-config-properties-adminconfig.md) – `https://ns.adobe.com/helix/config/project#/properties/admin`
16
+
17
+ * [AkamaiConfig](./project-config-cdn-properties-prod-oneof-akamaiconfig.md) – `https://ns.adobe.com/helix/config/cdn#/properties/prod/oneOf/1`
18
+
19
+ * [CloudflareConfig](./project-config-cdn-properties-prod-oneof-cloudflareconfig.md) – `https://ns.adobe.com/helix/config/cdn#/properties/prod/oneOf/2`
20
+
21
+ * [FastlyConfig](./project-config-cdn-properties-prod-oneof-fastlyconfig.md "Production CDN configuration for Fastly") – `https://ns.adobe.com/helix/config/cdn#/properties/prod/oneOf/0`
22
+
23
+ * [ManagedConfig](./project-config-cdn-properties-prod-oneof-managedconfig.md) – `https://ns.adobe.com/helix/config/cdn#/properties/prod/oneOf/3`
24
+
25
+ * [Role](./project-config-properties-adminconfig-properties-role.md) – `https://ns.adobe.com/helix/config/project#/properties/admin/properties/role`
26
+
27
+ * [SiteAccessConfig](./project-config-properties-siteaccessconfig.md) – `https://ns.adobe.com/helix/config/project#/properties/access`
28
+
29
+ * [Untitled object in ConfigAll](./project-config-all-properties-config.md "Project config (from /") – `https://ns.adobe.com/helix/config/all#/properties/config`
30
+
31
+ * [Untitled object in ConfigAll](./project-config-all-properties-metadata.md "Metadata (from /metadata") – `https://ns.adobe.com/helix/config/all#/properties/metadata`
32
+
33
+ * [Untitled object in ConfigAll](./project-config-all-properties-headers.md "Headers modifier (from /") – `https://ns.adobe.com/helix/config/all#/properties/headers`
34
+
35
+ ### Arrays
36
+
37
+ * [Untitled array in ProjectCDNConfig](./project-config-cdn-defs-stringorarray-oneof-1.md) – `https://ns.adobe.com/helix/config/cdn#/$defs/stringOrArray/oneOf/1`
38
+
39
+ * [Untitled array in ProjectConfig](./project-config-defs-emailglob-oneof-1.md) – `https://ns.adobe.com/helix/config/project#/$defs/emailglob/oneOf/1`
40
+
41
+ * [Untitled array in ProjectConfig](./project-config-properties-slack-oneof-1.md) – `https://ns.adobe.com/helix/config/project#/properties/slack/oneOf/1`
42
+
43
+ ## Version Note
44
+
45
+ The schemas linked above follow the JSON Schema Spec version: `http://json-schema.org/draft-07/schema#`
@@ -0,0 +1,15 @@
1
+ # Untitled undefined type in ConfigAll Schema
2
+
3
+ ```txt
4
+ https://ns.adobe.com/helix/config/all#/properties/config/properties/data
5
+ ```
6
+
7
+ The project config
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-all.schema.json\*](project-config-all.schema.json "open original schema") |
12
+
13
+ ## data Type
14
+
15
+ unknown
@@ -0,0 +1,15 @@
1
+ # Untitled string in ConfigAll Schema
2
+
3
+ ```txt
4
+ https://ns.adobe.com/helix/config/all#/properties/config/properties/lastModified
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-all.schema.json\*](project-config-all.schema.json "open original schema") |
12
+
13
+ ## lastModified Type
14
+
15
+ `string`
@@ -0,0 +1,58 @@
1
+ # Untitled object in ConfigAll Schema
2
+
3
+ ```txt
4
+ https://ns.adobe.com/helix/config/all#/properties/config
5
+ ```
6
+
7
+ Project config (from /.helix/config.json)
8
+
9
+ | Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
10
+ | :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :---------------------------------------------------------------------------------------- |
11
+ | Can be instantiated | No | Unknown status | No | Forbidden | Forbidden | none | [project-config-all.schema.json\*](project-config-all.schema.json "open original schema") |
12
+
13
+ ## config Type
14
+
15
+ `object` ([Details](project-config-all-properties-config.md))
16
+
17
+ # config Properties
18
+
19
+ | Property | Type | Required | Nullable | Defined by |
20
+ | :---------------------------- | :------------ | :------- | :------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | [data](#data) | Not specified | Required | cannot be null | [ConfigAll](project-config-all-properties-config-properties-data.md "https://ns.adobe.com/helix/config/all#/properties/config/properties/data") |
22
+ | [lastModified](#lastmodified) | `string` | Required | cannot be null | [ConfigAll](project-config-all-properties-config-properties-lastmodified.md "https://ns.adobe.com/helix/config/all#/properties/config/properties/lastModified") |
23
+
24
+ ## data
25
+
26
+ The project config
27
+
28
+ `data`
29
+
30
+ * is required
31
+
32
+ * Type: unknown
33
+
34
+ * cannot be null
35
+
36
+ * defined in: [ConfigAll](project-config-all-properties-config-properties-data.md "https://ns.adobe.com/helix/config/all#/properties/config/properties/data")
37
+
38
+ ### data Type
39
+
40
+ unknown
41
+
42
+ ## lastModified
43
+
44
+
45
+
46
+ `lastModified`
47
+
48
+ * is required
49
+
50
+ * Type: `string`
51
+
52
+ * cannot be null
53
+
54
+ * defined in: [ConfigAll](project-config-all-properties-config-properties-lastmodified.md "https://ns.adobe.com/helix/config/all#/properties/config/properties/lastModified")
55
+
56
+ ### lastModified Type
57
+
58
+ `string`
@@ -0,0 +1,15 @@
1
+ # Untitled undefined type in ConfigAll Schema
2
+
3
+ ```txt
4
+ https://ns.adobe.com/helix/config/all#/properties/headers/properties/data
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-all.schema.json\*](project-config-all.schema.json "open original schema") |
12
+
13
+ ## data Type
14
+
15
+ unknown
@@ -0,0 +1,15 @@
1
+ # Untitled string in ConfigAll Schema
2
+
3
+ ```txt
4
+ https://ns.adobe.com/helix/config/all#/properties/headers/properties/lastModified
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-all.schema.json\*](project-config-all.schema.json "open original schema") |
12
+
13
+ ## lastModified Type
14
+
15
+ `string`