@breadstone/archipel-mcp 0.0.37 → 0.0.39
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/data/guides/application-bootstrap.md +181 -0
- package/data/guides/email-templates.md +4 -0
- package/data/guides/index.md +1 -2
- package/data/guides/openapi-and-feature-discovery.md +26 -1
- package/data/packages/platform-bootstrap/api/Class.PlatformApplication.md +41 -0
- package/data/packages/platform-bootstrap/api/Class.PlatformApplicationBuilder.md +164 -0
- package/data/packages/platform-bootstrap/api/Class.PlatformBootstrapContext.md +164 -0
- package/data/packages/platform-bootstrap/api/Class.PlatformBootstrapError.md +130 -0
- package/data/packages/platform-bootstrap/api/Function.createPlatformTestApplication.md +26 -0
- package/data/packages/platform-bootstrap/api/Function.useApi.md +32 -0
- package/data/packages/platform-bootstrap/api/Function.useExpressServer.md +32 -0
- package/data/packages/platform-bootstrap/api/Function.useOpenApi.md +32 -0
- package/data/packages/platform-bootstrap/api/Function.useSecurity.md +32 -0
- package/data/packages/platform-bootstrap/api/Function.useSession.md +32 -0
- package/data/packages/platform-bootstrap/api/Interface.IApiStepOptions.md +58 -0
- package/data/packages/platform-bootstrap/api/Interface.IApiValidationOptions.md +58 -0
- package/data/packages/platform-bootstrap/api/Interface.IExpressServerStepOptions.md +46 -0
- package/data/packages/platform-bootstrap/api/Interface.IOpenApiStepOptions.md +34 -0
- package/data/packages/platform-bootstrap/api/Interface.IPlatformApplicationOptions.md +22 -0
- package/data/packages/platform-bootstrap/api/Interface.IPlatformListenOptions.md +46 -0
- package/data/packages/platform-bootstrap/api/Interface.IPlatformTestApplication.md +211 -0
- package/data/packages/platform-bootstrap/api/Interface.ISecurityStepOptions.md +63 -0
- package/data/packages/platform-bootstrap/api/Interface.ISessionStepOptions.md +118 -0
- package/data/packages/platform-bootstrap/api/TypeAlias.PlatformBootstrapNext.md +18 -0
- package/data/packages/platform-bootstrap/api/TypeAlias.PlatformBootstrapStep.md +31 -0
- package/data/packages/platform-bootstrap/api/TypeAlias.PlatformContentSecurityPolicyMode.md +14 -0
- package/data/packages/platform-bootstrap/api/TypeAlias.PlatformCorsOptions.md +14 -0
- package/data/packages/platform-bootstrap/api/TypeAlias.SecurityRateLimitOptions.md +28 -0
- package/data/packages/platform-bootstrap/api/Variable.APP_CORS_ORIGIN.md +14 -0
- package/data/packages/platform-bootstrap/api/Variable.APP_RATE_LIMIT_MAX_REQUESTS.md +14 -0
- package/data/packages/platform-bootstrap/api/Variable.APP_RATE_LIMIT_WINDOW_MS.md +14 -0
- package/data/packages/platform-bootstrap/api/Variable.AUTH_SESSION_MAX_AGE.md +14 -0
- package/data/packages/platform-bootstrap/api/Variable.AUTH_SESSION_SECRET.md +14 -0
- package/data/packages/platform-bootstrap/api/Variable.AUTH_SESSION_SECURE.md +14 -0
- package/data/packages/platform-bootstrap/api/Variable.PLATFORM_SECURITY_CONFIG_ENTRIES.md +14 -0
- package/data/packages/platform-bootstrap/api/Variable.PLATFORM_SERVER_CONFIG_ENTRIES.md +14 -0
- package/data/packages/platform-bootstrap/api/Variable.PLATFORM_SESSION_CONFIG_ENTRIES.md +14 -0
- package/data/packages/platform-bootstrap/api/Variable.PORT.md +14 -0
- package/data/packages/platform-bootstrap/api/index.md +65 -0
- package/data/packages/platform-bootstrap/index.md +162 -0
- package/data/patterns/bootstrap-pattern.md +145 -0
- package/data/patterns/index.md +21 -0
- package/package.json +2 -2
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Class: PlatformBootstrapError'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Class: PlatformBootstrapError
|
|
7
|
+
|
|
8
|
+
Defined in: [errors/PlatformBootstrapError.ts:8](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/errors/PlatformBootstrapError.ts#L8)
|
|
9
|
+
|
|
10
|
+
Error raised when an Archipel platform bootstrap step fails.
|
|
11
|
+
|
|
12
|
+
## Extends
|
|
13
|
+
|
|
14
|
+
- `Error`
|
|
15
|
+
|
|
16
|
+
## Constructors
|
|
17
|
+
|
|
18
|
+
### Constructor
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
new PlatformBootstrapError(message, options?): PlatformBootstrapError;
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Defined in: [errors/PlatformBootstrapError.ts:19](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/errors/PlatformBootstrapError.ts#L19)
|
|
25
|
+
|
|
26
|
+
#### Parameters
|
|
27
|
+
|
|
28
|
+
| Parameter | Type |
|
|
29
|
+
| ------ | ------ |
|
|
30
|
+
| `message` | `string` |
|
|
31
|
+
| `options?` | `IPlatformBootstrapErrorOptions` |
|
|
32
|
+
|
|
33
|
+
#### Returns
|
|
34
|
+
|
|
35
|
+
`PlatformBootstrapError`
|
|
36
|
+
|
|
37
|
+
#### Overrides
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
Error.constructor
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Accessors
|
|
44
|
+
|
|
45
|
+
### cause
|
|
46
|
+
|
|
47
|
+
#### Get Signature
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
get cause(): unknown;
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Defined in: [errors/PlatformBootstrapError.ts:36](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/errors/PlatformBootstrapError.ts#L36)
|
|
54
|
+
|
|
55
|
+
Original error that caused the bootstrap failure.
|
|
56
|
+
|
|
57
|
+
##### Returns
|
|
58
|
+
|
|
59
|
+
`unknown`
|
|
60
|
+
|
|
61
|
+
#### Overrides
|
|
62
|
+
|
|
63
|
+
```ts
|
|
64
|
+
Error.cause
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
***
|
|
68
|
+
|
|
69
|
+
### stepIndex
|
|
70
|
+
|
|
71
|
+
#### Get Signature
|
|
72
|
+
|
|
73
|
+
```ts
|
|
74
|
+
get stepIndex(): number | undefined;
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Defined in: [errors/PlatformBootstrapError.ts:45](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/errors/PlatformBootstrapError.ts#L45)
|
|
78
|
+
|
|
79
|
+
Zero-based index of the failing bootstrap step.
|
|
80
|
+
|
|
81
|
+
##### Returns
|
|
82
|
+
|
|
83
|
+
`number` \| `undefined`
|
|
84
|
+
|
|
85
|
+
***
|
|
86
|
+
|
|
87
|
+
### stepName
|
|
88
|
+
|
|
89
|
+
#### Get Signature
|
|
90
|
+
|
|
91
|
+
```ts
|
|
92
|
+
get stepName(): string | undefined;
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Defined in: [errors/PlatformBootstrapError.ts:54](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/errors/PlatformBootstrapError.ts#L54)
|
|
96
|
+
|
|
97
|
+
Display name of the failing bootstrap step.
|
|
98
|
+
|
|
99
|
+
##### Returns
|
|
100
|
+
|
|
101
|
+
`string` \| `undefined`
|
|
102
|
+
|
|
103
|
+
## Methods
|
|
104
|
+
|
|
105
|
+
### wrap()
|
|
106
|
+
|
|
107
|
+
```ts
|
|
108
|
+
static wrap(
|
|
109
|
+
cause,
|
|
110
|
+
stepName,
|
|
111
|
+
stepIndex): PlatformBootstrapError;
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Defined in: [errors/PlatformBootstrapError.ts:71](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/errors/PlatformBootstrapError.ts#L71)
|
|
115
|
+
|
|
116
|
+
Wraps an unknown thrown value in a platform bootstrap error.
|
|
117
|
+
|
|
118
|
+
#### Parameters
|
|
119
|
+
|
|
120
|
+
| Parameter | Type | Description |
|
|
121
|
+
| ------ | ------ | ------ |
|
|
122
|
+
| `cause` | `unknown` | The thrown value. |
|
|
123
|
+
| `stepName` | `string` | Display name of the failing step. |
|
|
124
|
+
| `stepIndex` | `number` | Zero-based index of the failing step. |
|
|
125
|
+
|
|
126
|
+
#### Returns
|
|
127
|
+
|
|
128
|
+
`PlatformBootstrapError`
|
|
129
|
+
|
|
130
|
+
A platform bootstrap error.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Function: createPlatformTestApplication()'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Function: createPlatformTestApplication()
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
function createPlatformTestApplication(configService?): IPlatformTestApplication;
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Defined in: [testing/createPlatformTestApplication.ts:13](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/testing/createPlatformTestApplication.ts#L13)
|
|
13
|
+
|
|
14
|
+
Creates a lightweight in-memory NestJS application double for platform bootstrap tests.
|
|
15
|
+
|
|
16
|
+
## Parameters
|
|
17
|
+
|
|
18
|
+
| Parameter | Type | Description |
|
|
19
|
+
| ------ | ------ | ------ |
|
|
20
|
+
| `configService?` | `ConfigService` | Optional config service double. |
|
|
21
|
+
|
|
22
|
+
## Returns
|
|
23
|
+
|
|
24
|
+
[`IPlatformTestApplication`](Interface.IPlatformTestApplication)
|
|
25
|
+
|
|
26
|
+
A platform test application.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Function: useApi()'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Function: useApi()
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
function useApi<TApplication>(options?): PlatformBootstrapStep<TApplication>;
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Defined in: [steps/useApi.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/steps/useApi.ts#L15)
|
|
13
|
+
|
|
14
|
+
Creates the generic Archipel API bootstrap step.
|
|
15
|
+
|
|
16
|
+
## Type Parameters
|
|
17
|
+
|
|
18
|
+
| Type Parameter | Default type |
|
|
19
|
+
| ------ | ------ |
|
|
20
|
+
| `TApplication` *extends* `INestApplication`\<`any`\> | `INestApplication`\<`any`\> |
|
|
21
|
+
|
|
22
|
+
## Parameters
|
|
23
|
+
|
|
24
|
+
| Parameter | Type | Description |
|
|
25
|
+
| ------ | ------ | ------ |
|
|
26
|
+
| `options?` | [`IApiStepOptions`](Interface.IApiStepOptions) | API bootstrap options. |
|
|
27
|
+
|
|
28
|
+
## Returns
|
|
29
|
+
|
|
30
|
+
[`PlatformBootstrapStep`](TypeAlias.PlatformBootstrapStep)\<`TApplication`\>
|
|
31
|
+
|
|
32
|
+
A platform bootstrap step.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Function: useExpressServer()'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Function: useExpressServer()
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
function useExpressServer<TApplication>(options?): PlatformBootstrapStep<TApplication>;
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Defined in: server/express/useExpressServer.ts:14
|
|
13
|
+
|
|
14
|
+
Creates an Express-compatible server bootstrap step.
|
|
15
|
+
|
|
16
|
+
## Type Parameters
|
|
17
|
+
|
|
18
|
+
| Type Parameter | Default type |
|
|
19
|
+
| ------ | ------ |
|
|
20
|
+
| `TApplication` *extends* `INestApplication`\<`any`\> | `INestApplication`\<`any`\> |
|
|
21
|
+
|
|
22
|
+
## Parameters
|
|
23
|
+
|
|
24
|
+
| Parameter | Type | Description |
|
|
25
|
+
| ------ | ------ | ------ |
|
|
26
|
+
| `options?` | [`IExpressServerStepOptions`](Interface.IExpressServerStepOptions) | Express server options. |
|
|
27
|
+
|
|
28
|
+
## Returns
|
|
29
|
+
|
|
30
|
+
[`PlatformBootstrapStep`](TypeAlias.PlatformBootstrapStep)\<`TApplication`\>
|
|
31
|
+
|
|
32
|
+
A platform bootstrap step.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Function: useOpenApi()'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Function: useOpenApi()
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
function useOpenApi<TApplication>(options?): PlatformBootstrapStep<TApplication>;
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Defined in: [openapi/useOpenApi.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/openapi/useOpenApi.ts#L16)
|
|
13
|
+
|
|
14
|
+
Creates the Archipel OpenAPI multi-document bootstrap step.
|
|
15
|
+
|
|
16
|
+
## Type Parameters
|
|
17
|
+
|
|
18
|
+
| Type Parameter | Default type |
|
|
19
|
+
| ------ | ------ |
|
|
20
|
+
| `TApplication` *extends* `INestApplication`\<`any`\> | `INestApplication`\<`any`\> |
|
|
21
|
+
|
|
22
|
+
## Parameters
|
|
23
|
+
|
|
24
|
+
| Parameter | Type | Description |
|
|
25
|
+
| ------ | ------ | ------ |
|
|
26
|
+
| `options?` | [`IOpenApiStepOptions`](Interface.IOpenApiStepOptions) | OpenAPI bootstrap options. |
|
|
27
|
+
|
|
28
|
+
## Returns
|
|
29
|
+
|
|
30
|
+
[`PlatformBootstrapStep`](TypeAlias.PlatformBootstrapStep)\<`TApplication`\>
|
|
31
|
+
|
|
32
|
+
A platform bootstrap step.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Function: useSecurity()'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Function: useSecurity()
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
function useSecurity<TApplication>(options?): PlatformBootstrapStep<TApplication>;
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Defined in: [security/useSecurity.ts:18](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/security/useSecurity.ts#L18)
|
|
13
|
+
|
|
14
|
+
Creates the generic security bootstrap step.
|
|
15
|
+
|
|
16
|
+
## Type Parameters
|
|
17
|
+
|
|
18
|
+
| Type Parameter | Default type |
|
|
19
|
+
| ------ | ------ |
|
|
20
|
+
| `TApplication` *extends* `INestApplication`\<`any`\> | `INestApplication`\<`any`\> |
|
|
21
|
+
|
|
22
|
+
## Parameters
|
|
23
|
+
|
|
24
|
+
| Parameter | Type | Description |
|
|
25
|
+
| ------ | ------ | ------ |
|
|
26
|
+
| `options?` | [`ISecurityStepOptions`](Interface.ISecurityStepOptions) | Security bootstrap options. |
|
|
27
|
+
|
|
28
|
+
## Returns
|
|
29
|
+
|
|
30
|
+
[`PlatformBootstrapStep`](TypeAlias.PlatformBootstrapStep)\<`TApplication`\>
|
|
31
|
+
|
|
32
|
+
A platform bootstrap step.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Function: useSession()'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Function: useSession()
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
function useSession<TApplication>(options?): PlatformBootstrapStep<TApplication>;
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Defined in: [session/useSession.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/session/useSession.ts#L16)
|
|
13
|
+
|
|
14
|
+
Creates an Express-compatible session bootstrap step.
|
|
15
|
+
|
|
16
|
+
## Type Parameters
|
|
17
|
+
|
|
18
|
+
| Type Parameter | Default type |
|
|
19
|
+
| ------ | ------ |
|
|
20
|
+
| `TApplication` *extends* `INestApplication`\<`any`\> | `INestApplication`\<`any`\> |
|
|
21
|
+
|
|
22
|
+
## Parameters
|
|
23
|
+
|
|
24
|
+
| Parameter | Type | Description |
|
|
25
|
+
| ------ | ------ | ------ |
|
|
26
|
+
| `options?` | [`ISessionStepOptions`](Interface.ISessionStepOptions) | Session middleware options. |
|
|
27
|
+
|
|
28
|
+
## Returns
|
|
29
|
+
|
|
30
|
+
[`PlatformBootstrapStep`](TypeAlias.PlatformBootstrapStep)\<`TApplication`\>
|
|
31
|
+
|
|
32
|
+
A platform bootstrap step.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IApiStepOptions'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Interface: IApiStepOptions
|
|
7
|
+
|
|
8
|
+
Defined in: [steps/IApiStepOptions.ts:8](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/steps/IApiStepOptions.ts#L8)
|
|
9
|
+
|
|
10
|
+
Options for the generic Archipel API bootstrap step.
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
### prefix?
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
readonly optional prefix?: string;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Defined in: [steps/IApiStepOptions.ts:10](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/steps/IApiStepOptions.ts#L10)
|
|
21
|
+
|
|
22
|
+
Global route prefix, for example `api`.
|
|
23
|
+
|
|
24
|
+
***
|
|
25
|
+
|
|
26
|
+
### problemDetails?
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
readonly optional problemDetails?: boolean;
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Defined in: [steps/IApiStepOptions.ts:13](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/steps/IApiStepOptions.ts#L13)
|
|
33
|
+
|
|
34
|
+
Whether to enable RFC 7807 problem-detail error responses.
|
|
35
|
+
|
|
36
|
+
***
|
|
37
|
+
|
|
38
|
+
### repositoryErrors?
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
readonly optional repositoryErrors?: boolean;
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Defined in: [steps/IApiStepOptions.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/steps/IApiStepOptions.ts#L16)
|
|
45
|
+
|
|
46
|
+
Whether to enable repository error mapping.
|
|
47
|
+
|
|
48
|
+
***
|
|
49
|
+
|
|
50
|
+
### validation?
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
readonly optional validation?: boolean | IApiValidationOptions;
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Defined in: [steps/IApiStepOptions.ts:19](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/steps/IApiStepOptions.ts#L19)
|
|
57
|
+
|
|
58
|
+
Validation behavior for request DTOs.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IApiValidationOptions'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Interface: IApiValidationOptions
|
|
7
|
+
|
|
8
|
+
Defined in: [steps/IApiValidationOptions.ts:6](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/steps/IApiValidationOptions.ts#L6)
|
|
9
|
+
|
|
10
|
+
Validation options used by the generic Archipel API bootstrap step.
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
### enableImplicitConversion?
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
readonly optional enableImplicitConversion?: boolean;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Defined in: [steps/IApiValidationOptions.ts:17](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/steps/IApiValidationOptions.ts#L17)
|
|
21
|
+
|
|
22
|
+
Whether class-transformer should enable implicit primitive conversion.
|
|
23
|
+
|
|
24
|
+
***
|
|
25
|
+
|
|
26
|
+
### forbidNonWhitelisted?
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
readonly optional forbidNonWhitelisted?: boolean;
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Defined in: [steps/IApiValidationOptions.ts:11](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/steps/IApiValidationOptions.ts#L11)
|
|
33
|
+
|
|
34
|
+
Whether stripped properties should produce validation errors.
|
|
35
|
+
|
|
36
|
+
***
|
|
37
|
+
|
|
38
|
+
### transform?
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
readonly optional transform?: boolean;
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Defined in: [steps/IApiValidationOptions.ts:14](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/steps/IApiValidationOptions.ts#L14)
|
|
45
|
+
|
|
46
|
+
Whether payloads should be transformed into DTO class instances.
|
|
47
|
+
|
|
48
|
+
***
|
|
49
|
+
|
|
50
|
+
### whitelist?
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
readonly optional whitelist?: boolean;
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Defined in: [steps/IApiValidationOptions.ts:8](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/steps/IApiValidationOptions.ts#L8)
|
|
57
|
+
|
|
58
|
+
Whether properties without validation decorators are stripped.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IExpressServerStepOptions'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Interface: IExpressServerStepOptions
|
|
7
|
+
|
|
8
|
+
Defined in: server/express/IExpressServerStepOptions.ts:9
|
|
9
|
+
|
|
10
|
+
Options for the Express-compatible server bootstrap step.
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
### compression?
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
readonly optional compression?: boolean | CompressionOptions;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Defined in: server/express/IExpressServerStepOptions.ts:17
|
|
21
|
+
|
|
22
|
+
Compression middleware options, or `false` to skip compression.
|
|
23
|
+
|
|
24
|
+
***
|
|
25
|
+
|
|
26
|
+
### json?
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
readonly optional json?: boolean | OptionsJson;
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Defined in: server/express/IExpressServerStepOptions.ts:11
|
|
33
|
+
|
|
34
|
+
JSON body parser options, or `false` to skip JSON body parsing.
|
|
35
|
+
|
|
36
|
+
***
|
|
37
|
+
|
|
38
|
+
### urlEncoded?
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
readonly optional urlEncoded?: boolean | OptionsUrlencoded;
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Defined in: server/express/IExpressServerStepOptions.ts:14
|
|
45
|
+
|
|
46
|
+
URL-encoded body parser options, or `false` to skip URL-encoded body parsing.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IOpenApiStepOptions'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Interface: IOpenApiStepOptions
|
|
7
|
+
|
|
8
|
+
Defined in: [openapi/IOpenApiStepOptions.ts:8](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/openapi/IOpenApiStepOptions.ts#L8)
|
|
9
|
+
|
|
10
|
+
Options for the OpenAPI bootstrap step.
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
### enabled?
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
readonly optional enabled?: boolean;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Defined in: [openapi/IOpenApiStepOptions.ts:10](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/openapi/IOpenApiStepOptions.ts#L10)
|
|
21
|
+
|
|
22
|
+
Whether OpenAPI setup should run.
|
|
23
|
+
|
|
24
|
+
***
|
|
25
|
+
|
|
26
|
+
### theme?
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
readonly optional theme?: ISwaggerThemeConfig;
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Defined in: [openapi/IOpenApiStepOptions.ts:13](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/openapi/IOpenApiStepOptions.ts#L13)
|
|
33
|
+
|
|
34
|
+
Optional Swagger UI theme configuration.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IPlatformApplicationOptions'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Interface: IPlatformApplicationOptions
|
|
7
|
+
|
|
8
|
+
Defined in: [options/IPlatformApplicationOptions.ts:8](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/options/IPlatformApplicationOptions.ts#L8)
|
|
9
|
+
|
|
10
|
+
Options for wrapping an existing NestJS application with Archipel platform bootstrap support.
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
### configService?
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
readonly optional configService?: ConfigService;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Defined in: [options/IPlatformApplicationOptions.ts:10](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/options/IPlatformApplicationOptions.ts#L10)
|
|
21
|
+
|
|
22
|
+
Explicit configuration service to use instead of resolving it from the NestJS container.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IPlatformListenOptions'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Interface: IPlatformListenOptions
|
|
7
|
+
|
|
8
|
+
Defined in: [options/IPlatformListenOptions.ts:8](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/options/IPlatformListenOptions.ts#L8)
|
|
9
|
+
|
|
10
|
+
Options for resolving the HTTP listen port from typed configuration keys.
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
### fallbackPort?
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
readonly optional fallbackPort?: number;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Defined in: [options/IPlatformListenOptions.ts:13](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/options/IPlatformListenOptions.ts#L13)
|
|
21
|
+
|
|
22
|
+
Fallback port used when none of the configured keys are present.
|
|
23
|
+
|
|
24
|
+
***
|
|
25
|
+
|
|
26
|
+
### hostname?
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
readonly optional hostname?: string;
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Defined in: [options/IPlatformListenOptions.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/options/IPlatformListenOptions.ts#L16)
|
|
33
|
+
|
|
34
|
+
Optional hostname/interface binding passed to NestJS `listen`.
|
|
35
|
+
|
|
36
|
+
***
|
|
37
|
+
|
|
38
|
+
### portConfigKeys?
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
readonly optional portConfigKeys?: readonly IConfigKey<string | number | undefined>[];
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Defined in: [options/IPlatformListenOptions.ts:10](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-bootstrap/src/options/IPlatformListenOptions.ts#L10)
|
|
45
|
+
|
|
46
|
+
Ordered list of port config keys. The first present value wins.
|