@twin.org/engine-server-types 0.0.3-next.3 → 0.0.3-next.31

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 (88) hide show
  1. package/README.md +1 -1
  2. package/dist/es/components/authentication.js +23 -19
  3. package/dist/es/components/authentication.js.map +1 -1
  4. package/dist/es/components/authenticationAdmin.js +19 -15
  5. package/dist/es/components/authenticationAdmin.js.map +1 -1
  6. package/dist/es/components/authenticationAudit.js +35 -0
  7. package/dist/es/components/authenticationAudit.js.map +1 -0
  8. package/dist/es/components/authenticationRate.js +37 -0
  9. package/dist/es/components/authenticationRate.js.map +1 -0
  10. package/dist/es/components/hosting.js +29 -0
  11. package/dist/es/components/hosting.js.map +1 -0
  12. package/dist/es/components/information.js +12 -9
  13. package/dist/es/components/information.js.map +1 -1
  14. package/dist/es/components/mimeTypeProcessor.js +7 -7
  15. package/dist/es/components/mimeTypeProcessor.js.map +1 -1
  16. package/dist/es/components/restRouteProcessor.js +38 -46
  17. package/dist/es/components/restRouteProcessor.js.map +1 -1
  18. package/dist/es/components/socketRouteProcessor.js +34 -42
  19. package/dist/es/components/socketRouteProcessor.js.map +1 -1
  20. package/dist/es/index.js +9 -0
  21. package/dist/es/index.js.map +1 -1
  22. package/dist/es/models/IEngineServerConfig.js.map +1 -1
  23. package/dist/es/models/config/authenticationAuditComponentConfig.js +2 -0
  24. package/dist/es/models/config/authenticationAuditComponentConfig.js.map +1 -0
  25. package/dist/es/models/config/authenticationRateComponentConfig.js +2 -0
  26. package/dist/es/models/config/authenticationRateComponentConfig.js.map +1 -0
  27. package/dist/es/models/config/hostingComponentConfig.js +2 -0
  28. package/dist/es/models/config/hostingComponentConfig.js.map +1 -0
  29. package/dist/es/models/config/restRouteProcessorConfig.js.map +1 -1
  30. package/dist/es/models/config/socketRouteProcessorConfig.js.map +1 -1
  31. package/dist/es/models/types/authenticationAuditComponentType.js +13 -0
  32. package/dist/es/models/types/authenticationAuditComponentType.js.map +1 -0
  33. package/dist/es/models/types/authenticationRateComponentType.js +13 -0
  34. package/dist/es/models/types/authenticationRateComponentType.js.map +1 -0
  35. package/dist/es/models/types/hostingComponentType.js +13 -0
  36. package/dist/es/models/types/hostingComponentType.js.map +1 -0
  37. package/dist/types/components/authentication.d.ts +3 -7
  38. package/dist/types/components/authenticationAdmin.d.ts +3 -7
  39. package/dist/types/components/authenticationAudit.d.ts +12 -0
  40. package/dist/types/components/authenticationRate.d.ts +12 -0
  41. package/dist/types/components/hosting.d.ts +12 -0
  42. package/dist/types/components/information.d.ts +3 -7
  43. package/dist/types/components/mimeTypeProcessor.d.ts +2 -7
  44. package/dist/types/components/restRouteProcessor.d.ts +2 -7
  45. package/dist/types/components/socketRouteProcessor.d.ts +2 -7
  46. package/dist/types/index.d.ts +9 -0
  47. package/dist/types/models/IEngineServerConfig.d.ts +21 -6
  48. package/dist/types/models/config/authenticationAuditComponentConfig.d.ts +9 -0
  49. package/dist/types/models/config/authenticationRateComponentConfig.d.ts +9 -0
  50. package/dist/types/models/config/hostingComponentConfig.d.ts +9 -0
  51. package/dist/types/models/config/restRouteProcessorConfig.d.ts +0 -4
  52. package/dist/types/models/config/socketRouteProcessorConfig.d.ts +0 -4
  53. package/dist/types/models/types/authenticationAuditComponentType.d.ts +13 -0
  54. package/dist/types/models/types/authenticationRateComponentType.d.ts +13 -0
  55. package/dist/types/models/types/hostingComponentType.d.ts +13 -0
  56. package/docs/changelog.md +478 -1
  57. package/docs/examples.md +64 -1
  58. package/docs/reference/functions/initialiseAuthenticationAdminComponent.md +2 -2
  59. package/docs/reference/functions/initialiseAuthenticationAuditComponent.md +31 -0
  60. package/docs/reference/functions/initialiseAuthenticationComponent.md +2 -2
  61. package/docs/reference/functions/initialiseAuthenticationRateComponent.md +31 -0
  62. package/docs/reference/functions/initialiseHostingComponent.md +31 -0
  63. package/docs/reference/functions/initialiseInformationComponent.md +2 -2
  64. package/docs/reference/functions/initialiseMimeTypeProcessorComponent.md +2 -2
  65. package/docs/reference/functions/initialiseRestRouteProcessorComponent.md +2 -2
  66. package/docs/reference/functions/initialiseSocketRouteProcessorComponent.md +2 -2
  67. package/docs/reference/index.md +12 -0
  68. package/docs/reference/interfaces/IEngineServerConfig.md +473 -15
  69. package/docs/reference/type-aliases/AuthenticationAdminComponentConfig.md +3 -3
  70. package/docs/reference/type-aliases/AuthenticationAuditComponentConfig.md +17 -0
  71. package/docs/reference/type-aliases/AuthenticationAuditComponentType.md +5 -0
  72. package/docs/reference/type-aliases/AuthenticationRateComponentConfig.md +17 -0
  73. package/docs/reference/type-aliases/AuthenticationRateComponentType.md +5 -0
  74. package/docs/reference/type-aliases/HostingComponentConfig.md +17 -0
  75. package/docs/reference/type-aliases/HostingComponentType.md +5 -0
  76. package/docs/reference/type-aliases/MimeTypeProcessorConfig.md +3 -3
  77. package/docs/reference/type-aliases/RestRouteProcessorConfig.md +1 -1
  78. package/docs/reference/type-aliases/SocketRouteProcessorConfig.md +1 -1
  79. package/docs/reference/variables/AuthenticationAdminComponentType.md +1 -1
  80. package/docs/reference/variables/AuthenticationAuditComponentType.md +13 -0
  81. package/docs/reference/variables/AuthenticationComponentType.md +2 -2
  82. package/docs/reference/variables/AuthenticationRateComponentType.md +13 -0
  83. package/docs/reference/variables/HostingComponentType.md +13 -0
  84. package/docs/reference/variables/InformationComponentType.md +2 -2
  85. package/docs/reference/variables/MimeTypeProcessorType.md +1 -1
  86. package/docs/reference/variables/RestRouteProcessorType.md +7 -7
  87. package/docs/reference/variables/SocketRouteProcessorType.md +7 -7
  88. package/package.json +4 -5
@@ -0,0 +1,31 @@
1
+ # Function: initialiseAuthenticationAuditComponent()
2
+
3
+ > **initialiseAuthenticationAuditComponent**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`AuthenticationAuditComponentConfig`](../type-aliases/AuthenticationAuditComponentConfig.md), `Factory`\<`IComponent`\>\>
4
+
5
+ Initialise the authentication audit.
6
+
7
+ ## Parameters
8
+
9
+ ### engineCore
10
+
11
+ `IEngineCore`\<[`IEngineServerConfig`](../interfaces/IEngineServerConfig.md)\>
12
+
13
+ The engine core.
14
+
15
+ ### context
16
+
17
+ `IEngineCoreContext`\<[`IEngineServerConfig`](../interfaces/IEngineServerConfig.md)\>
18
+
19
+ The context for the engine.
20
+
21
+ ### instanceConfig
22
+
23
+ [`AuthenticationAuditComponentConfig`](../type-aliases/AuthenticationAuditComponentConfig.md)
24
+
25
+ The instance config.
26
+
27
+ ## Returns
28
+
29
+ `EngineTypeInitialiserReturn`\<[`AuthenticationAuditComponentConfig`](../type-aliases/AuthenticationAuditComponentConfig.md), `Factory`\<`IComponent`\>\>
30
+
31
+ The instance created and the factory for it.
@@ -1,6 +1,6 @@
1
1
  # Function: initialiseAuthenticationComponent()
2
2
 
3
- > **initialiseAuthenticationComponent**(`engineCore`, `context`, `instanceConfig`): `Promise`\<\{ `instanceType?`: `string`; `factory?`: `Factory`\<`IComponent`\>; `component?`: `IComponent`; \}\>
3
+ > **initialiseAuthenticationComponent**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`AuthenticationComponentConfig`](../type-aliases/AuthenticationComponentConfig.md), `Factory`\<`IComponent`\>\>
4
4
 
5
5
  Initialise the authentication.
6
6
 
@@ -26,6 +26,6 @@ The instance config.
26
26
 
27
27
  ## Returns
28
28
 
29
- `Promise`\<\{ `instanceType?`: `string`; `factory?`: `Factory`\<`IComponent`\>; `component?`: `IComponent`; \}\>
29
+ `EngineTypeInitialiserReturn`\<[`AuthenticationComponentConfig`](../type-aliases/AuthenticationComponentConfig.md), `Factory`\<`IComponent`\>\>
30
30
 
31
31
  The instance created and the factory for it.
@@ -0,0 +1,31 @@
1
+ # Function: initialiseAuthenticationRateComponent()
2
+
3
+ > **initialiseAuthenticationRateComponent**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`AuthenticationRateComponentConfig`](../type-aliases/AuthenticationRateComponentConfig.md), `Factory`\<`IComponent`\>\>
4
+
5
+ Initialise the authentication rate.
6
+
7
+ ## Parameters
8
+
9
+ ### engineCore
10
+
11
+ `IEngineCore`\<[`IEngineServerConfig`](../interfaces/IEngineServerConfig.md)\>
12
+
13
+ The engine core.
14
+
15
+ ### context
16
+
17
+ `IEngineCoreContext`\<[`IEngineServerConfig`](../interfaces/IEngineServerConfig.md)\>
18
+
19
+ The context for the engine.
20
+
21
+ ### instanceConfig
22
+
23
+ [`AuthenticationRateComponentConfig`](../type-aliases/AuthenticationRateComponentConfig.md)
24
+
25
+ The instance config.
26
+
27
+ ## Returns
28
+
29
+ `EngineTypeInitialiserReturn`\<[`AuthenticationRateComponentConfig`](../type-aliases/AuthenticationRateComponentConfig.md), `Factory`\<`IComponent`\>\>
30
+
31
+ The instance created and the factory for it.
@@ -0,0 +1,31 @@
1
+ # Function: initialiseHostingComponent()
2
+
3
+ > **initialiseHostingComponent**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`HostingComponentConfig`](../type-aliases/HostingComponentConfig.md), `Factory`\<`IComponent`\>\>
4
+
5
+ Initialise the hosting component.
6
+
7
+ ## Parameters
8
+
9
+ ### engineCore
10
+
11
+ `IEngineCore`\<[`IEngineServerConfig`](../interfaces/IEngineServerConfig.md)\>
12
+
13
+ The engine core.
14
+
15
+ ### context
16
+
17
+ `IEngineCoreContext`\<[`IEngineServerConfig`](../interfaces/IEngineServerConfig.md)\>
18
+
19
+ The context for the engine.
20
+
21
+ ### instanceConfig
22
+
23
+ [`HostingComponentConfig`](../type-aliases/HostingComponentConfig.md)
24
+
25
+ The instance config.
26
+
27
+ ## Returns
28
+
29
+ `EngineTypeInitialiserReturn`\<[`HostingComponentConfig`](../type-aliases/HostingComponentConfig.md), `Factory`\<`IComponent`\>\>
30
+
31
+ The instance created and the factory for it.
@@ -1,6 +1,6 @@
1
1
  # Function: initialiseInformationComponent()
2
2
 
3
- > **initialiseInformationComponent**(`engineCore`, `context`, `instanceConfig`): `Promise`\<\{ `instanceType?`: `string`; `factory?`: `Factory`\<`IComponent`\>; `component?`: `IComponent`; \}\>
3
+ > **initialiseInformationComponent**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`InformationComponentConfig`](../type-aliases/InformationComponentConfig.md), `Factory`\<`IComponent`\>\>
4
4
 
5
5
  Initialise the information component.
6
6
 
@@ -26,6 +26,6 @@ The instance config.
26
26
 
27
27
  ## Returns
28
28
 
29
- `Promise`\<\{ `instanceType?`: `string`; `factory?`: `Factory`\<`IComponent`\>; `component?`: `IComponent`; \}\>
29
+ `EngineTypeInitialiserReturn`\<[`InformationComponentConfig`](../type-aliases/InformationComponentConfig.md), `Factory`\<`IComponent`\>\>
30
30
 
31
31
  The instance created and the factory for it.
@@ -1,6 +1,6 @@
1
1
  # Function: initialiseMimeTypeProcessorComponent()
2
2
 
3
- > **initialiseMimeTypeProcessorComponent**(`engineCore`, `context`, `instanceConfig`): `Promise`\<\{ `instanceType?`: `string`; `factory?`: `Factory`\<`IMimeTypeProcessor`\>; `component?`: `IComponent`; \}\>
3
+ > **initialiseMimeTypeProcessorComponent**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`MimeTypeProcessorConfig`](../type-aliases/MimeTypeProcessorConfig.md), `Factory`\<`IMimeTypeProcessor`\>\>
4
4
 
5
5
  Initialise the mime type processor.
6
6
 
@@ -26,6 +26,6 @@ The instance config.
26
26
 
27
27
  ## Returns
28
28
 
29
- `Promise`\<\{ `instanceType?`: `string`; `factory?`: `Factory`\<`IMimeTypeProcessor`\>; `component?`: `IComponent`; \}\>
29
+ `EngineTypeInitialiserReturn`\<[`MimeTypeProcessorConfig`](../type-aliases/MimeTypeProcessorConfig.md), `Factory`\<`IMimeTypeProcessor`\>\>
30
30
 
31
31
  The instance created and the factory for it.
@@ -1,6 +1,6 @@
1
1
  # Function: initialiseRestRouteProcessorComponent()
2
2
 
3
- > **initialiseRestRouteProcessorComponent**(`engineCore`, `context`, `instanceConfig`): `Promise`\<\{ `instanceType?`: `string`; `factory?`: `Factory`\<`IRestRouteProcessor`\>; `component?`: `IComponent`; \}\>
3
+ > **initialiseRestRouteProcessorComponent**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`RestRouteProcessorConfig`](../type-aliases/RestRouteProcessorConfig.md), `Factory`\<`IRestRouteProcessor`\>\>
4
4
 
5
5
  Initialise the rest route processor.
6
6
 
@@ -26,6 +26,6 @@ The instance config.
26
26
 
27
27
  ## Returns
28
28
 
29
- `Promise`\<\{ `instanceType?`: `string`; `factory?`: `Factory`\<`IRestRouteProcessor`\>; `component?`: `IComponent`; \}\>
29
+ `EngineTypeInitialiserReturn`\<[`RestRouteProcessorConfig`](../type-aliases/RestRouteProcessorConfig.md), `Factory`\<`IRestRouteProcessor`\>\>
30
30
 
31
31
  The instance created and the factory for it.
@@ -1,6 +1,6 @@
1
1
  # Function: initialiseSocketRouteProcessorComponent()
2
2
 
3
- > **initialiseSocketRouteProcessorComponent**(`engineCore`, `context`, `instanceConfig`): `Promise`\<\{ `instanceType?`: `string`; `factory?`: `Factory`\<`ISocketRouteProcessor`\>; `component?`: `IComponent`; \}\>
3
+ > **initialiseSocketRouteProcessorComponent**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`SocketRouteProcessorConfig`](../type-aliases/SocketRouteProcessorConfig.md), `Factory`\<`ISocketRouteProcessor`\>\>
4
4
 
5
5
  Initialise the socket route processor.
6
6
 
@@ -26,6 +26,6 @@ The instance config.
26
26
 
27
27
  ## Returns
28
28
 
29
- `Promise`\<\{ `instanceType?`: `string`; `factory?`: `Factory`\<`ISocketRouteProcessor`\>; `component?`: `IComponent`; \}\>
29
+ `EngineTypeInitialiserReturn`\<[`SocketRouteProcessorConfig`](../type-aliases/SocketRouteProcessorConfig.md), `Factory`\<`ISocketRouteProcessor`\>\>
30
30
 
31
31
  The instance created and the factory for it.
@@ -7,13 +7,19 @@
7
7
  ## Type Aliases
8
8
 
9
9
  - [AuthenticationAdminComponentConfig](type-aliases/AuthenticationAdminComponentConfig.md)
10
+ - [AuthenticationAuditComponentConfig](type-aliases/AuthenticationAuditComponentConfig.md)
10
11
  - [AuthenticationComponentConfig](type-aliases/AuthenticationComponentConfig.md)
12
+ - [AuthenticationRateComponentConfig](type-aliases/AuthenticationRateComponentConfig.md)
13
+ - [HostingComponentConfig](type-aliases/HostingComponentConfig.md)
11
14
  - [InformationComponentConfig](type-aliases/InformationComponentConfig.md)
12
15
  - [MimeTypeProcessorConfig](type-aliases/MimeTypeProcessorConfig.md)
13
16
  - [RestRouteProcessorConfig](type-aliases/RestRouteProcessorConfig.md)
14
17
  - [SocketRouteProcessorConfig](type-aliases/SocketRouteProcessorConfig.md)
15
18
  - [AuthenticationAdminComponentType](type-aliases/AuthenticationAdminComponentType.md)
19
+ - [AuthenticationAuditComponentType](type-aliases/AuthenticationAuditComponentType.md)
16
20
  - [AuthenticationComponentType](type-aliases/AuthenticationComponentType.md)
21
+ - [AuthenticationRateComponentType](type-aliases/AuthenticationRateComponentType.md)
22
+ - [HostingComponentType](type-aliases/HostingComponentType.md)
17
23
  - [InformationComponentType](type-aliases/InformationComponentType.md)
18
24
  - [MimeTypeProcessorType](type-aliases/MimeTypeProcessorType.md)
19
25
  - [RestRouteProcessorType](type-aliases/RestRouteProcessorType.md)
@@ -22,7 +28,10 @@
22
28
  ## Variables
23
29
 
24
30
  - [AuthenticationAdminComponentType](variables/AuthenticationAdminComponentType.md)
31
+ - [AuthenticationAuditComponentType](variables/AuthenticationAuditComponentType.md)
25
32
  - [AuthenticationComponentType](variables/AuthenticationComponentType.md)
33
+ - [AuthenticationRateComponentType](variables/AuthenticationRateComponentType.md)
34
+ - [HostingComponentType](variables/HostingComponentType.md)
26
35
  - [InformationComponentType](variables/InformationComponentType.md)
27
36
  - [MimeTypeProcessorType](variables/MimeTypeProcessorType.md)
28
37
  - [RestRouteProcessorType](variables/RestRouteProcessorType.md)
@@ -32,6 +41,9 @@
32
41
 
33
42
  - [initialiseAuthenticationComponent](functions/initialiseAuthenticationComponent.md)
34
43
  - [initialiseAuthenticationAdminComponent](functions/initialiseAuthenticationAdminComponent.md)
44
+ - [initialiseAuthenticationAuditComponent](functions/initialiseAuthenticationAuditComponent.md)
45
+ - [initialiseAuthenticationRateComponent](functions/initialiseAuthenticationRateComponent.md)
46
+ - [initialiseHostingComponent](functions/initialiseHostingComponent.md)
35
47
  - [initialiseInformationComponent](functions/initialiseInformationComponent.md)
36
48
  - [initialiseMimeTypeProcessorComponent](functions/initialiseMimeTypeProcessorComponent.md)
37
49
  - [initialiseRestRouteProcessorComponent](functions/initialiseRestRouteProcessorComponent.md)