@twin.org/api-service 0.0.3-next.4 → 0.0.3-next.41
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/README.md +1 -1
- package/dist/es/healthRoutes.js +107 -0
- package/dist/es/healthRoutes.js.map +1 -0
- package/dist/es/healthService.js +155 -0
- package/dist/es/healthService.js.map +1 -0
- package/dist/es/hostingService.js +115 -0
- package/dist/es/hostingService.js.map +1 -0
- package/dist/es/index.js +10 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/informationRoutes.js +92 -62
- package/dist/es/informationRoutes.js.map +1 -1
- package/dist/es/informationService.js +12 -58
- package/dist/es/informationService.js.map +1 -1
- package/dist/es/models/IHealthServiceConfig.js +4 -0
- package/dist/es/models/IHealthServiceConfig.js.map +1 -0
- package/dist/es/models/IHealthServiceConstructorOptions.js +2 -0
- package/dist/es/models/IHealthServiceConstructorOptions.js.map +1 -0
- package/dist/es/models/IHostingServiceConfig.js +4 -0
- package/dist/es/models/IHostingServiceConfig.js.map +1 -0
- package/dist/es/models/IHostingServiceConstructorOptions.js +2 -0
- package/dist/es/models/IHostingServiceConstructorOptions.js.map +1 -0
- package/dist/es/models/IUrlTransformerServiceConfig.js +4 -0
- package/dist/es/models/IUrlTransformerServiceConfig.js.map +1 -0
- package/dist/es/models/IUrlTransformerServiceConstructorOptions.js +2 -0
- package/dist/es/models/IUrlTransformerServiceConstructorOptions.js.map +1 -0
- package/dist/es/restEntryPoints.js +7 -0
- package/dist/es/restEntryPoints.js.map +1 -1
- package/dist/es/urlTransformerService.js +256 -0
- package/dist/es/urlTransformerService.js.map +1 -0
- package/dist/types/healthRoutes.d.ts +20 -0
- package/dist/types/healthService.d.ts +42 -0
- package/dist/types/hostingService.d.ts +45 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/informationRoutes.d.ts +11 -3
- package/dist/types/informationService.d.ts +11 -16
- package/dist/types/models/IHealthServiceConfig.d.ts +16 -0
- package/dist/types/models/IHealthServiceConstructorOptions.d.ts +10 -0
- package/dist/types/models/IHostingServiceConfig.d.ts +13 -0
- package/dist/types/models/IHostingServiceConstructorOptions.d.ts +15 -0
- package/dist/types/models/IUrlTransformerServiceConfig.d.ts +19 -0
- package/dist/types/models/IUrlTransformerServiceConstructorOptions.d.ts +15 -0
- package/dist/types/urlTransformerService.d.ts +94 -0
- package/docs/changelog.md +588 -55
- package/docs/examples.md +74 -1
- package/docs/reference/classes/HealthService.md +123 -0
- package/docs/reference/classes/HostingService.md +157 -0
- package/docs/reference/classes/InformationService.md +19 -65
- package/docs/reference/classes/UrlTransformerService.md +379 -0
- package/docs/reference/functions/generateRestRoutesHealth.md +25 -0
- package/docs/reference/functions/serverLivez.md +31 -0
- package/docs/reference/functions/serverReadyz.md +31 -0
- package/docs/reference/index.md +14 -1
- package/docs/reference/interfaces/IHealthServiceConfig.md +32 -0
- package/docs/reference/interfaces/IHealthServiceConstructorOptions.md +11 -0
- package/docs/reference/interfaces/IHostingServiceConfig.md +19 -0
- package/docs/reference/interfaces/IHostingServiceConstructorOptions.md +25 -0
- package/docs/reference/interfaces/IInformationServiceConfig.md +5 -5
- package/docs/reference/interfaces/IInformationServiceConstructorOptions.md +1 -1
- package/docs/reference/interfaces/IUrlTransformerServiceConfig.md +32 -0
- package/docs/reference/interfaces/IUrlTransformerServiceConstructorOptions.md +25 -0
- package/docs/reference/variables/tagsHealth.md +5 -0
- package/locales/en.json +13 -1
- package/package.json +9 -5
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
# Class: UrlTransformerService
|
|
2
|
+
|
|
3
|
+
The URL transformer service for encrypting and decrypting URL parameters.
|
|
4
|
+
|
|
5
|
+
## Implements
|
|
6
|
+
|
|
7
|
+
- `IUrlTransformerComponent`
|
|
8
|
+
|
|
9
|
+
## Constructors
|
|
10
|
+
|
|
11
|
+
### Constructor
|
|
12
|
+
|
|
13
|
+
> **new UrlTransformerService**(`options?`): `UrlTransformerService`
|
|
14
|
+
|
|
15
|
+
Create a new instance of UrlTransformerService.
|
|
16
|
+
|
|
17
|
+
#### Parameters
|
|
18
|
+
|
|
19
|
+
##### options?
|
|
20
|
+
|
|
21
|
+
[`IUrlTransformerServiceConstructorOptions`](../interfaces/IUrlTransformerServiceConstructorOptions.md)
|
|
22
|
+
|
|
23
|
+
The options to create the service.
|
|
24
|
+
|
|
25
|
+
#### Returns
|
|
26
|
+
|
|
27
|
+
`UrlTransformerService`
|
|
28
|
+
|
|
29
|
+
## Properties
|
|
30
|
+
|
|
31
|
+
### CLASS\_NAME {#class_name}
|
|
32
|
+
|
|
33
|
+
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
34
|
+
|
|
35
|
+
Runtime name for the class.
|
|
36
|
+
|
|
37
|
+
## Methods
|
|
38
|
+
|
|
39
|
+
### className() {#classname}
|
|
40
|
+
|
|
41
|
+
> **className**(): `string`
|
|
42
|
+
|
|
43
|
+
Returns the class name of the component.
|
|
44
|
+
|
|
45
|
+
#### Returns
|
|
46
|
+
|
|
47
|
+
`string`
|
|
48
|
+
|
|
49
|
+
The class name of the component.
|
|
50
|
+
|
|
51
|
+
#### Implementation of
|
|
52
|
+
|
|
53
|
+
`IUrlTransformerComponent.className`
|
|
54
|
+
|
|
55
|
+
***
|
|
56
|
+
|
|
57
|
+
### start() {#start}
|
|
58
|
+
|
|
59
|
+
> **start**(): `Promise`\<`void`\>
|
|
60
|
+
|
|
61
|
+
The component needs to be started when the node is initialized.
|
|
62
|
+
|
|
63
|
+
#### Returns
|
|
64
|
+
|
|
65
|
+
`Promise`\<`void`\>
|
|
66
|
+
|
|
67
|
+
Nothing.
|
|
68
|
+
|
|
69
|
+
#### Implementation of
|
|
70
|
+
|
|
71
|
+
`IUrlTransformerComponent.start`
|
|
72
|
+
|
|
73
|
+
***
|
|
74
|
+
|
|
75
|
+
### addEncryptedQueryParamToUrl() {#addencryptedqueryparamtourl}
|
|
76
|
+
|
|
77
|
+
> **addEncryptedQueryParamToUrl**(`url`, `id`, `value`): `Promise`\<`string`\>
|
|
78
|
+
|
|
79
|
+
Encrypt a named token value and append it as a query parameter to the given URL.
|
|
80
|
+
|
|
81
|
+
#### Parameters
|
|
82
|
+
|
|
83
|
+
##### url
|
|
84
|
+
|
|
85
|
+
`string`
|
|
86
|
+
|
|
87
|
+
The URL to append the encrypted token to.
|
|
88
|
+
|
|
89
|
+
##### id
|
|
90
|
+
|
|
91
|
+
`string`
|
|
92
|
+
|
|
93
|
+
The logical token identifier (e.g. "tenant").
|
|
94
|
+
|
|
95
|
+
##### value
|
|
96
|
+
|
|
97
|
+
`string`
|
|
98
|
+
|
|
99
|
+
The value to encrypt and add.
|
|
100
|
+
|
|
101
|
+
#### Returns
|
|
102
|
+
|
|
103
|
+
`Promise`\<`string`\>
|
|
104
|
+
|
|
105
|
+
The URL with the encrypted token added as a query parameter.
|
|
106
|
+
|
|
107
|
+
#### Implementation of
|
|
108
|
+
|
|
109
|
+
`IUrlTransformerComponent.addEncryptedQueryParamToUrl`
|
|
110
|
+
|
|
111
|
+
***
|
|
112
|
+
|
|
113
|
+
### getEncryptedQueryParam() {#getencryptedqueryparam}
|
|
114
|
+
|
|
115
|
+
> **getEncryptedQueryParam**(`queryParams`, `id`): `Promise`\<`string` \| `undefined`\>
|
|
116
|
+
|
|
117
|
+
Get a named token value from the query parameters.
|
|
118
|
+
|
|
119
|
+
#### Parameters
|
|
120
|
+
|
|
121
|
+
##### queryParams
|
|
122
|
+
|
|
123
|
+
`IHttpRequestQuery` \| `undefined`
|
|
124
|
+
|
|
125
|
+
The HTTP request query containing the parameters.
|
|
126
|
+
|
|
127
|
+
##### id
|
|
128
|
+
|
|
129
|
+
`string`
|
|
130
|
+
|
|
131
|
+
The logical token identifier (e.g. "tenant").
|
|
132
|
+
|
|
133
|
+
#### Returns
|
|
134
|
+
|
|
135
|
+
`Promise`\<`string` \| `undefined`\>
|
|
136
|
+
|
|
137
|
+
The decrypted token value if it exists.
|
|
138
|
+
|
|
139
|
+
#### Implementation of
|
|
140
|
+
|
|
141
|
+
`IUrlTransformerComponent.getEncryptedQueryParam`
|
|
142
|
+
|
|
143
|
+
***
|
|
144
|
+
|
|
145
|
+
### addEncryptedToUrl() {#addencryptedtourl}
|
|
146
|
+
|
|
147
|
+
> **addEncryptedToUrl**(`url`, `params`): `Promise`\<`string`\>
|
|
148
|
+
|
|
149
|
+
Add encrypted key/value pairs to a URL's query string.
|
|
150
|
+
|
|
151
|
+
#### Parameters
|
|
152
|
+
|
|
153
|
+
##### url
|
|
154
|
+
|
|
155
|
+
`string`
|
|
156
|
+
|
|
157
|
+
The base URL to add parameters to.
|
|
158
|
+
|
|
159
|
+
##### params
|
|
160
|
+
|
|
161
|
+
`IHttpRequestQuery`
|
|
162
|
+
|
|
163
|
+
The key/value pairs to encrypt and append.
|
|
164
|
+
|
|
165
|
+
#### Returns
|
|
166
|
+
|
|
167
|
+
`Promise`\<`string`\>
|
|
168
|
+
|
|
169
|
+
The URL with the encrypted parameters added.
|
|
170
|
+
|
|
171
|
+
#### Implementation of
|
|
172
|
+
|
|
173
|
+
`IUrlTransformerComponent.addEncryptedToUrl`
|
|
174
|
+
|
|
175
|
+
***
|
|
176
|
+
|
|
177
|
+
### getEncryptedFromUrl() {#getencryptedfromurl}
|
|
178
|
+
|
|
179
|
+
> **getEncryptedFromUrl**(`url`, `id`): `Promise`\<`string` \| `undefined`\>
|
|
180
|
+
|
|
181
|
+
Get an encrypted value from a URL's query string.
|
|
182
|
+
|
|
183
|
+
#### Parameters
|
|
184
|
+
|
|
185
|
+
##### url
|
|
186
|
+
|
|
187
|
+
`string`
|
|
188
|
+
|
|
189
|
+
The URL to extract the encrypted value from.
|
|
190
|
+
|
|
191
|
+
##### id
|
|
192
|
+
|
|
193
|
+
`string`
|
|
194
|
+
|
|
195
|
+
The logical identifier for the value to retrieve (e.g. "tenant").
|
|
196
|
+
|
|
197
|
+
#### Returns
|
|
198
|
+
|
|
199
|
+
`Promise`\<`string` \| `undefined`\>
|
|
200
|
+
|
|
201
|
+
The decrypted value if it exists.
|
|
202
|
+
|
|
203
|
+
#### Implementation of
|
|
204
|
+
|
|
205
|
+
`IUrlTransformerComponent.getEncryptedFromUrl`
|
|
206
|
+
|
|
207
|
+
***
|
|
208
|
+
|
|
209
|
+
### getDecryptedFromQueryParams() {#getdecryptedfromqueryparams}
|
|
210
|
+
|
|
211
|
+
> **getDecryptedFromQueryParams**(`queryParams`, `keys`): `Promise`\<`IHttpRequestQuery`\>
|
|
212
|
+
|
|
213
|
+
Decrypt specified keys from a query parameter object and return their plain-text values.
|
|
214
|
+
|
|
215
|
+
#### Parameters
|
|
216
|
+
|
|
217
|
+
##### queryParams
|
|
218
|
+
|
|
219
|
+
`IHttpRequestQuery` \| `undefined`
|
|
220
|
+
|
|
221
|
+
The HTTP request query containing the encrypted parameters.
|
|
222
|
+
|
|
223
|
+
##### keys
|
|
224
|
+
|
|
225
|
+
`string`[]
|
|
226
|
+
|
|
227
|
+
The keys to decrypt.
|
|
228
|
+
|
|
229
|
+
#### Returns
|
|
230
|
+
|
|
231
|
+
`Promise`\<`IHttpRequestQuery`\>
|
|
232
|
+
|
|
233
|
+
A map of the decrypted key/value pairs that were present.
|
|
234
|
+
|
|
235
|
+
#### Implementation of
|
|
236
|
+
|
|
237
|
+
`IUrlTransformerComponent.getDecryptedFromQueryParams`
|
|
238
|
+
|
|
239
|
+
***
|
|
240
|
+
|
|
241
|
+
### encryptQueryParams() {#encryptqueryparams}
|
|
242
|
+
|
|
243
|
+
> **encryptQueryParams**(`httpRequestQuery`, `keys`): `Promise`\<`void`\>
|
|
244
|
+
|
|
245
|
+
Encrypt query parameters.
|
|
246
|
+
|
|
247
|
+
#### Parameters
|
|
248
|
+
|
|
249
|
+
##### httpRequestQuery
|
|
250
|
+
|
|
251
|
+
`IHttpRequestQuery` \| `undefined`
|
|
252
|
+
|
|
253
|
+
The HTTP request query containing the parameters to encrypt.
|
|
254
|
+
|
|
255
|
+
##### keys
|
|
256
|
+
|
|
257
|
+
`string`[]
|
|
258
|
+
|
|
259
|
+
The keys of the parameters to encrypt.
|
|
260
|
+
|
|
261
|
+
#### Returns
|
|
262
|
+
|
|
263
|
+
`Promise`\<`void`\>
|
|
264
|
+
|
|
265
|
+
A promise that resolves when the query parameters have been encrypted.
|
|
266
|
+
|
|
267
|
+
#### Implementation of
|
|
268
|
+
|
|
269
|
+
`IUrlTransformerComponent.encryptQueryParams`
|
|
270
|
+
|
|
271
|
+
***
|
|
272
|
+
|
|
273
|
+
### decryptQueryParams() {#decryptqueryparams}
|
|
274
|
+
|
|
275
|
+
> **decryptQueryParams**(`httpRequestQuery`, `keys`): `Promise`\<`void`\>
|
|
276
|
+
|
|
277
|
+
Decrypt query parameters.
|
|
278
|
+
|
|
279
|
+
#### Parameters
|
|
280
|
+
|
|
281
|
+
##### httpRequestQuery
|
|
282
|
+
|
|
283
|
+
`IHttpRequestQuery` \| `undefined`
|
|
284
|
+
|
|
285
|
+
The HTTP request query containing the encrypted values.
|
|
286
|
+
|
|
287
|
+
##### keys
|
|
288
|
+
|
|
289
|
+
`string`[]
|
|
290
|
+
|
|
291
|
+
The keys of the parameters to decrypt.
|
|
292
|
+
|
|
293
|
+
#### Returns
|
|
294
|
+
|
|
295
|
+
`Promise`\<`void`\>
|
|
296
|
+
|
|
297
|
+
A promise that resolves when the query parameters have been decrypted.
|
|
298
|
+
|
|
299
|
+
#### Implementation of
|
|
300
|
+
|
|
301
|
+
`IUrlTransformerComponent.decryptQueryParams`
|
|
302
|
+
|
|
303
|
+
***
|
|
304
|
+
|
|
305
|
+
### encryptParam() {#encryptparam}
|
|
306
|
+
|
|
307
|
+
> **encryptParam**(`paramValue`): `Promise`\<`string`\>
|
|
308
|
+
|
|
309
|
+
Encrypt a parameter value.
|
|
310
|
+
|
|
311
|
+
#### Parameters
|
|
312
|
+
|
|
313
|
+
##### paramValue
|
|
314
|
+
|
|
315
|
+
`string`
|
|
316
|
+
|
|
317
|
+
The value of the parameter to encrypt.
|
|
318
|
+
|
|
319
|
+
#### Returns
|
|
320
|
+
|
|
321
|
+
`Promise`\<`string`\>
|
|
322
|
+
|
|
323
|
+
A promise that resolves to the encrypted value of the parameter.
|
|
324
|
+
|
|
325
|
+
#### Implementation of
|
|
326
|
+
|
|
327
|
+
`IUrlTransformerComponent.encryptParam`
|
|
328
|
+
|
|
329
|
+
***
|
|
330
|
+
|
|
331
|
+
### decryptParam() {#decryptparam}
|
|
332
|
+
|
|
333
|
+
> **decryptParam**(`encryptedValue`): `Promise`\<`string`\>
|
|
334
|
+
|
|
335
|
+
Decrypt a parameter value.
|
|
336
|
+
|
|
337
|
+
#### Parameters
|
|
338
|
+
|
|
339
|
+
##### encryptedValue
|
|
340
|
+
|
|
341
|
+
`string`
|
|
342
|
+
|
|
343
|
+
The encrypted value of the parameter.
|
|
344
|
+
|
|
345
|
+
#### Returns
|
|
346
|
+
|
|
347
|
+
`Promise`\<`string`\>
|
|
348
|
+
|
|
349
|
+
A promise that resolves to the decrypted value of the parameter.
|
|
350
|
+
|
|
351
|
+
#### Implementation of
|
|
352
|
+
|
|
353
|
+
`IUrlTransformerComponent.decryptParam`
|
|
354
|
+
|
|
355
|
+
***
|
|
356
|
+
|
|
357
|
+
### getParamName() {#getparamname}
|
|
358
|
+
|
|
359
|
+
> **getParamName**(`key`): `string` \| `undefined`
|
|
360
|
+
|
|
361
|
+
Get the parameter name for a given key.
|
|
362
|
+
|
|
363
|
+
#### Parameters
|
|
364
|
+
|
|
365
|
+
##### key
|
|
366
|
+
|
|
367
|
+
`string`
|
|
368
|
+
|
|
369
|
+
The key of the parameter.
|
|
370
|
+
|
|
371
|
+
#### Returns
|
|
372
|
+
|
|
373
|
+
`string` \| `undefined`
|
|
374
|
+
|
|
375
|
+
The parameter name.
|
|
376
|
+
|
|
377
|
+
#### Implementation of
|
|
378
|
+
|
|
379
|
+
`IUrlTransformerComponent.getParamName`
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Function: generateRestRoutesHealth()
|
|
2
|
+
|
|
3
|
+
> **generateRestRoutesHealth**(`baseRouteName`, `componentName`): `IRestRoute`\<`any`, `any`\>[]
|
|
4
|
+
|
|
5
|
+
The REST routes for server health.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### baseRouteName
|
|
10
|
+
|
|
11
|
+
`string`
|
|
12
|
+
|
|
13
|
+
Prefix to prepend to the paths.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes stored in the ComponentFactory.
|
|
20
|
+
|
|
21
|
+
## Returns
|
|
22
|
+
|
|
23
|
+
`IRestRoute`\<`any`, `any`\>[]
|
|
24
|
+
|
|
25
|
+
The generated routes.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: serverLivez()
|
|
2
|
+
|
|
3
|
+
> **serverLivez**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IServerLivezResponse`\>
|
|
4
|
+
|
|
5
|
+
Get the livez for the server.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`INoContentRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`IServerLivezResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: serverReadyz()
|
|
2
|
+
|
|
3
|
+
> **serverReadyz**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IServerReadyzResponse`\>
|
|
4
|
+
|
|
5
|
+
Get the readyz for the server.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`INoContentRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`IServerReadyzResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
package/docs/reference/index.md
CHANGED
|
@@ -2,23 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
## Classes
|
|
4
4
|
|
|
5
|
+
- [HealthService](classes/HealthService.md)
|
|
6
|
+
- [HostingService](classes/HostingService.md)
|
|
5
7
|
- [InformationService](classes/InformationService.md)
|
|
8
|
+
- [UrlTransformerService](classes/UrlTransformerService.md)
|
|
6
9
|
|
|
7
10
|
## Interfaces
|
|
8
11
|
|
|
12
|
+
- [IHealthServiceConfig](interfaces/IHealthServiceConfig.md)
|
|
13
|
+
- [IHealthServiceConstructorOptions](interfaces/IHealthServiceConstructorOptions.md)
|
|
14
|
+
- [IHostingServiceConfig](interfaces/IHostingServiceConfig.md)
|
|
15
|
+
- [IHostingServiceConstructorOptions](interfaces/IHostingServiceConstructorOptions.md)
|
|
9
16
|
- [IInformationServiceConfig](interfaces/IInformationServiceConfig.md)
|
|
10
17
|
- [IInformationServiceConstructorOptions](interfaces/IInformationServiceConstructorOptions.md)
|
|
18
|
+
- [IUrlTransformerServiceConfig](interfaces/IUrlTransformerServiceConfig.md)
|
|
19
|
+
- [IUrlTransformerServiceConstructorOptions](interfaces/IUrlTransformerServiceConstructorOptions.md)
|
|
11
20
|
|
|
12
21
|
## Variables
|
|
13
22
|
|
|
23
|
+
- [tagsHealth](variables/tagsHealth.md)
|
|
14
24
|
- [tagsInformation](variables/tagsInformation.md)
|
|
15
25
|
- [restEntryPoints](variables/restEntryPoints.md)
|
|
16
26
|
|
|
17
27
|
## Functions
|
|
18
28
|
|
|
29
|
+
- [generateRestRoutesHealth](functions/generateRestRoutesHealth.md)
|
|
30
|
+
- [serverHealth](functions/serverHealth.md)
|
|
19
31
|
- [generateRestRoutesInformation](functions/generateRestRoutesInformation.md)
|
|
20
32
|
- [serverRoot](functions/serverRoot.md)
|
|
21
33
|
- [serverInfo](functions/serverInfo.md)
|
|
22
|
-
- [
|
|
34
|
+
- [serverLivez](functions/serverLivez.md)
|
|
35
|
+
- [serverReadyz](functions/serverReadyz.md)
|
|
23
36
|
- [serverFavIcon](functions/serverFavIcon.md)
|
|
24
37
|
- [serverSpec](functions/serverSpec.md)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Interface: IHealthServiceConfig
|
|
2
|
+
|
|
3
|
+
Configuration for the health service.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### healthCheckInterval? {#healthcheckinterval}
|
|
8
|
+
|
|
9
|
+
> `optional` **healthCheckInterval?**: `number`
|
|
10
|
+
|
|
11
|
+
The interval for checking the health of the components and setting it in the health service.
|
|
12
|
+
|
|
13
|
+
#### Default
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
60000
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### initialInterval? {#initialinterval}
|
|
22
|
+
|
|
23
|
+
> `optional` **initialInterval?**: `number`
|
|
24
|
+
|
|
25
|
+
The initial interval for checking the health of the components and setting it in the health service.
|
|
26
|
+
This is used to check the health of the components immediately after the service is started.
|
|
27
|
+
|
|
28
|
+
#### Default
|
|
29
|
+
|
|
30
|
+
```ts
|
|
31
|
+
2000
|
|
32
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Interface: IHostingServiceConfig
|
|
2
|
+
|
|
3
|
+
Configuration for the hosting service.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### localOrigin {#localorigin}
|
|
8
|
+
|
|
9
|
+
> **localOrigin**: `string`
|
|
10
|
+
|
|
11
|
+
The local origin, must be provided as a fallback e.g. http://localhost:1234.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### publicOrigin? {#publicorigin}
|
|
16
|
+
|
|
17
|
+
> `optional` **publicOrigin?**: `string`
|
|
18
|
+
|
|
19
|
+
The APIs public base URL e.g. "https://api.example.com:1234".
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Interface: IHostingServiceConstructorOptions
|
|
2
|
+
|
|
3
|
+
Options for the HostingService constructor.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### tenantAdminComponentType? {#tenantadmincomponenttype}
|
|
8
|
+
|
|
9
|
+
> `optional` **tenantAdminComponentType?**: `string`
|
|
10
|
+
|
|
11
|
+
The tenant admin component type.
|
|
12
|
+
|
|
13
|
+
#### Default
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
tenant-admin
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### config {#config}
|
|
22
|
+
|
|
23
|
+
> **config**: [`IHostingServiceConfig`](IHostingServiceConfig.md)
|
|
24
|
+
|
|
25
|
+
The configuration for the service.
|
|
@@ -4,7 +4,7 @@ Configuration for the information service.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### serverInfo
|
|
7
|
+
### serverInfo {#serverinfo}
|
|
8
8
|
|
|
9
9
|
> **serverInfo**: `IServerInfo`
|
|
10
10
|
|
|
@@ -12,16 +12,16 @@ The server information.
|
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### openApiSpecPath?
|
|
15
|
+
### openApiSpecPath? {#openapispecpath}
|
|
16
16
|
|
|
17
|
-
> `optional` **openApiSpecPath
|
|
17
|
+
> `optional` **openApiSpecPath?**: `string`
|
|
18
18
|
|
|
19
19
|
The path to the OpenAPI Spec.
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### favIconPath?
|
|
23
|
+
### favIconPath? {#faviconpath}
|
|
24
24
|
|
|
25
|
-
> `optional` **favIconPath
|
|
25
|
+
> `optional` **favIconPath?**: `string`
|
|
26
26
|
|
|
27
27
|
The path to the favicon.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Interface: IUrlTransformerServiceConfig
|
|
2
|
+
|
|
3
|
+
Configuration for the URL transformer service.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### paramEncryptionKeyName? {#paramencryptionkeyname}
|
|
8
|
+
|
|
9
|
+
> `optional` **paramEncryptionKeyName?**: `string`
|
|
10
|
+
|
|
11
|
+
The name of the key to retrieve from the vault for encryption/decryption of parameters.
|
|
12
|
+
|
|
13
|
+
#### Default
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
param-encryption
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### queryParamNames? {#queryparamnames}
|
|
22
|
+
|
|
23
|
+
> `optional` **queryParamNames?**: `object`
|
|
24
|
+
|
|
25
|
+
A dictionary mapping logical token identifiers to their URL query parameter names.
|
|
26
|
+
For example: tenant => tenant-token maps the logical id "tenant" to the
|
|
27
|
+
query param "tenant-token". When an id is not present the id itself is used as
|
|
28
|
+
the param name.
|
|
29
|
+
|
|
30
|
+
#### Index Signature
|
|
31
|
+
|
|
32
|
+
\[`id`: `string`\]: `string`
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Interface: IUrlTransformerServiceConstructorOptions
|
|
2
|
+
|
|
3
|
+
Options for the UrlTransformerService constructor.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### vaultConnectorType? {#vaultconnectortype}
|
|
8
|
+
|
|
9
|
+
> `optional` **vaultConnectorType?**: `string`
|
|
10
|
+
|
|
11
|
+
The vault connector type.
|
|
12
|
+
|
|
13
|
+
#### Default
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
vault
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### config? {#config}
|
|
22
|
+
|
|
23
|
+
> `optional` **config?**: [`IUrlTransformerServiceConfig`](IUrlTransformerServiceConfig.md)
|
|
24
|
+
|
|
25
|
+
The configuration for the service.
|