@twin.org/engine-types 0.0.2-next.13 → 0.0.2-next.14

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 (31) hide show
  1. package/dist/cjs/index.cjs +201 -110
  2. package/dist/esm/index.mjs +189 -100
  3. package/dist/types/components/rightsManagementDap.d.ts +13 -0
  4. package/dist/types/components/{rightsManagementPnrp.d.ts → rightsManagementDarp.d.ts} +3 -3
  5. package/dist/types/index.d.ts +7 -4
  6. package/dist/types/models/IEngineConfig.d.ts +8 -3
  7. package/dist/types/models/config/rightsManagementDapComponentConfig.d.ts +16 -0
  8. package/dist/types/models/config/rightsManagementDarpComponentConfig.d.ts +12 -0
  9. package/dist/types/models/config/rightsManagementPdpComponentConfig.d.ts +4 -1
  10. package/dist/types/models/config/rightsManagementPnpComponentConfig.d.ts +2 -1
  11. package/dist/types/models/types/rightsManagementDapComponentType.d.ts +17 -0
  12. package/dist/types/models/types/rightsManagementDarpComponentType.d.ts +13 -0
  13. package/docs/changelog.md +15 -0
  14. package/docs/reference/functions/initialiseRightsManagementDapComponent.md +41 -0
  15. package/docs/reference/functions/{initialiseRightsManagementPnrpComponent.md → initialiseRightsManagementDarpComponent.md} +4 -4
  16. package/docs/reference/index.md +8 -4
  17. package/docs/reference/interfaces/IEngineConfig.md +9 -3
  18. package/docs/reference/type-aliases/RightsManagementDapComponentConfig.md +5 -0
  19. package/docs/reference/type-aliases/RightsManagementDapComponentType.md +5 -0
  20. package/docs/reference/type-aliases/RightsManagementDarpComponentConfig.md +23 -0
  21. package/docs/reference/type-aliases/RightsManagementDarpComponentType.md +5 -0
  22. package/docs/reference/type-aliases/RightsManagementPdpComponentConfig.md +7 -1
  23. package/docs/reference/type-aliases/RightsManagementPnpComponentConfig.md +1 -1
  24. package/docs/reference/variables/RightsManagementDapComponentType.md +19 -0
  25. package/docs/reference/variables/RightsManagementDarpComponentType.md +13 -0
  26. package/package.json +4 -3
  27. package/dist/types/models/config/rightsManagementPnrpComponentConfig.d.ts +0 -9
  28. package/dist/types/models/types/rightsManagementPnrpComponentType.d.ts +0 -13
  29. package/docs/reference/type-aliases/RightsManagementPnrpComponentConfig.md +0 -17
  30. package/docs/reference/type-aliases/RightsManagementPnrpComponentType.md +0 -5
  31. package/docs/reference/variables/RightsManagementPnrpComponentType.md +0 -13
@@ -0,0 +1,41 @@
1
+ # Function: initialiseRightsManagementDapComponent()
2
+
3
+ > **initialiseRightsManagementDapComponent**(`engineCore`, `context`, `instanceConfig`, `overrideInstanceType?`): `Promise`\<`undefined` \| `string`\>
4
+
5
+ Initialise the rights management DAP component.
6
+
7
+ ## Parameters
8
+
9
+ ### engineCore
10
+
11
+ `IEngineCore`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
12
+
13
+ The engine core.
14
+
15
+ ### context
16
+
17
+ `IEngineCoreContext`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
18
+
19
+ The context for the engine.
20
+
21
+ ### instanceConfig
22
+
23
+ [`RightsManagementDapComponentConfig`](../type-aliases/RightsManagementDapComponentConfig.md)
24
+
25
+ The instance config.
26
+
27
+ ### overrideInstanceType?
28
+
29
+ `string`
30
+
31
+ The instance type to override the default.
32
+
33
+ ## Returns
34
+
35
+ `Promise`\<`undefined` \| `string`\>
36
+
37
+ The name of the instance created.
38
+
39
+ ## Throws
40
+
41
+ GeneralError if the component type is unknown.
@@ -1,8 +1,8 @@
1
- # Function: initialiseRightsManagementPnrpComponent()
1
+ # Function: initialiseRightsManagementDarpComponent()
2
2
 
3
- > **initialiseRightsManagementPnrpComponent**(`engineCore`, `context`, `instanceConfig`, `overrideInstanceType?`): `Promise`\<`undefined` \| `string`\>
3
+ > **initialiseRightsManagementDarpComponent**(`engineCore`, `context`, `instanceConfig`, `overrideInstanceType?`): `Promise`\<`undefined` \| `string`\>
4
4
 
5
- Initialise the rights management PNRP component.
5
+ Initialise the rights management DARP component.
6
6
 
7
7
  ## Parameters
8
8
 
@@ -20,7 +20,7 @@ The context for the engine.
20
20
 
21
21
  ### instanceConfig
22
22
 
23
- [`RightsManagementPnrpComponentConfig`](../type-aliases/RightsManagementPnrpComponentConfig.md)
23
+ [`RightsManagementDarpComponentConfig`](../type-aliases/RightsManagementDarpComponentConfig.md)
24
24
 
25
25
  The instance config.
26
26
 
@@ -40,6 +40,8 @@
40
40
  - [MessagingSmsConnectorConfig](type-aliases/MessagingSmsConnectorConfig.md)
41
41
  - [NftComponentConfig](type-aliases/NftComponentConfig.md)
42
42
  - [NftConnectorConfig](type-aliases/NftConnectorConfig.md)
43
+ - [RightsManagementDapComponentConfig](type-aliases/RightsManagementDapComponentConfig.md)
44
+ - [RightsManagementDarpComponentConfig](type-aliases/RightsManagementDarpComponentConfig.md)
43
45
  - [RightsManagementPapComponentConfig](type-aliases/RightsManagementPapComponentConfig.md)
44
46
  - [RightsManagementPdpComponentConfig](type-aliases/RightsManagementPdpComponentConfig.md)
45
47
  - [RightsManagementPepComponentConfig](type-aliases/RightsManagementPepComponentConfig.md)
@@ -47,7 +49,6 @@
47
49
  - [RightsManagementPmpComponentConfig](type-aliases/RightsManagementPmpComponentConfig.md)
48
50
  - [RightsManagementPnapComponentConfig](type-aliases/RightsManagementPnapComponentConfig.md)
49
51
  - [RightsManagementPnpComponentConfig](type-aliases/RightsManagementPnpComponentConfig.md)
50
- - [RightsManagementPnrpComponentConfig](type-aliases/RightsManagementPnrpComponentConfig.md)
51
52
  - [RightsManagementPxpComponentConfig](type-aliases/RightsManagementPxpComponentConfig.md)
52
53
  - [SynchronisedStorageComponentConfig](type-aliases/SynchronisedStorageComponentConfig.md)
53
54
  - [TaskSchedulerComponentConfig](type-aliases/TaskSchedulerComponentConfig.md)
@@ -91,6 +92,8 @@
91
92
  - [MessagingSmsConnectorType](type-aliases/MessagingSmsConnectorType.md)
92
93
  - [NftComponentType](type-aliases/NftComponentType.md)
93
94
  - [NftConnectorType](type-aliases/NftConnectorType.md)
95
+ - [RightsManagementDapComponentType](type-aliases/RightsManagementDapComponentType.md)
96
+ - [RightsManagementDarpComponentType](type-aliases/RightsManagementDarpComponentType.md)
94
97
  - [RightsManagementPapComponentType](type-aliases/RightsManagementPapComponentType.md)
95
98
  - [RightsManagementPdpComponentType](type-aliases/RightsManagementPdpComponentType.md)
96
99
  - [RightsManagementPepComponentType](type-aliases/RightsManagementPepComponentType.md)
@@ -98,7 +101,6 @@
98
101
  - [RightsManagementPmpComponentType](type-aliases/RightsManagementPmpComponentType.md)
99
102
  - [RightsManagementPnapComponentType](type-aliases/RightsManagementPnapComponentType.md)
100
103
  - [RightsManagementPnpComponentType](type-aliases/RightsManagementPnpComponentType.md)
101
- - [RightsManagementPnrpComponentType](type-aliases/RightsManagementPnrpComponentType.md)
102
104
  - [RightsManagementPxpComponentType](type-aliases/RightsManagementPxpComponentType.md)
103
105
  - [SynchronisedStorageComponentType](type-aliases/SynchronisedStorageComponentType.md)
104
106
  - [TaskSchedulerComponentType](type-aliases/TaskSchedulerComponentType.md)
@@ -145,6 +147,8 @@
145
147
  - [MessagingSmsConnectorType](variables/MessagingSmsConnectorType.md)
146
148
  - [NftComponentType](variables/NftComponentType.md)
147
149
  - [NftConnectorType](variables/NftConnectorType.md)
150
+ - [RightsManagementDapComponentType](variables/RightsManagementDapComponentType.md)
151
+ - [RightsManagementDarpComponentType](variables/RightsManagementDarpComponentType.md)
148
152
  - [RightsManagementPapComponentType](variables/RightsManagementPapComponentType.md)
149
153
  - [RightsManagementPdpComponentType](variables/RightsManagementPdpComponentType.md)
150
154
  - [RightsManagementPepComponentType](variables/RightsManagementPepComponentType.md)
@@ -152,7 +156,6 @@
152
156
  - [RightsManagementPmpComponentType](variables/RightsManagementPmpComponentType.md)
153
157
  - [RightsManagementPnapComponentType](variables/RightsManagementPnapComponentType.md)
154
158
  - [RightsManagementPnpComponentType](variables/RightsManagementPnpComponentType.md)
155
- - [RightsManagementPnrpComponentType](variables/RightsManagementPnrpComponentType.md)
156
159
  - [RightsManagementPxpComponentType](variables/RightsManagementPxpComponentType.md)
157
160
  - [SynchronisedStorageComponentType](variables/SynchronisedStorageComponentType.md)
158
161
  - [TaskSchedulerComponentType](variables/TaskSchedulerComponentType.md)
@@ -198,6 +201,8 @@
198
201
  - [initialiseMessagingComponent](functions/initialiseMessagingComponent.md)
199
202
  - [initialiseNftConnector](functions/initialiseNftConnector.md)
200
203
  - [initialiseNftComponent](functions/initialiseNftComponent.md)
204
+ - [initialiseRightsManagementDapComponent](functions/initialiseRightsManagementDapComponent.md)
205
+ - [initialiseRightsManagementDarpComponent](functions/initialiseRightsManagementDarpComponent.md)
201
206
  - [initialiseRightsManagementPapComponent](functions/initialiseRightsManagementPapComponent.md)
202
207
  - [initialiseRightsManagementPdpComponent](functions/initialiseRightsManagementPdpComponent.md)
203
208
  - [initialiseRightsManagementPepComponent](functions/initialiseRightsManagementPepComponent.md)
@@ -205,7 +210,6 @@
205
210
  - [initialiseRightsManagementPmpComponent](functions/initialiseRightsManagementPmpComponent.md)
206
211
  - [initialiseRightsManagementPnapComponent](functions/initialiseRightsManagementPnapComponent.md)
207
212
  - [initialiseRightsManagementPnpComponent](functions/initialiseRightsManagementPnpComponent.md)
208
- - [initialiseRightsManagementPnrpComponent](functions/initialiseRightsManagementPnrpComponent.md)
209
213
  - [initialiseRightsManagementPxpComponent](functions/initialiseRightsManagementPxpComponent.md)
210
214
  - [initialiseSynchronisedStorageComponent](functions/initialiseSynchronisedStorageComponent.md)
211
215
  - [initialiseTaskSchedulerComponent](functions/initialiseTaskSchedulerComponent.md)
@@ -300,11 +300,17 @@ Rights management PNP options which can be overridden by individual components b
300
300
 
301
301
  Rights management PNAP options which can be overridden by individual components by specifying types other than default.
302
302
 
303
- #### rightsManagementPnrpComponent?
303
+ #### rightsManagementDapComponent?
304
304
 
305
- > `optional` **rightsManagementPnrpComponent**: `IEngineCoreTypeConfig`\<[`RightsManagementPnrpComponentConfig`](../type-aliases/RightsManagementPnrpComponentConfig.md)\>[]
305
+ > `optional` **rightsManagementDapComponent**: `IEngineCoreTypeConfig`\<[`RightsManagementDapComponentConfig`](../type-aliases/RightsManagementDapComponentConfig.md)\>[]
306
306
 
307
- Rights management PNRP options which can be overridden by individual components by specifying types other than default.
307
+ Rights management DAP options which can be overridden by individual components by specifying types other than default.
308
+
309
+ #### rightsManagementDarpComponent?
310
+
311
+ > `optional` **rightsManagementDarpComponent**: `IEngineCoreTypeConfig`\<[`RightsManagementDarpComponentConfig`](../type-aliases/RightsManagementDarpComponentConfig.md)\>[]
312
+
313
+ Rights management DARP options which can be overridden by individual components by specifying types other than default.
308
314
 
309
315
  #### synchronisedStorageComponent?
310
316
 
@@ -0,0 +1,5 @@
1
+ # Type Alias: RightsManagementDapComponentConfig
2
+
3
+ > **RightsManagementDapComponentConfig** = \{ `type`: *typeof* [`Service`](../variables/RightsManagementDapComponentType.md#service); `options?`: `IDataAccessPointServiceConstructorOptions` & `object`; \} \| \{ `type`: *typeof* [`RestClient`](../variables/RightsManagementDapComponentType.md#restclient); `options`: `IBaseRestClientConfig`; \}
4
+
5
+ Rights management DAP component config types.
@@ -0,0 +1,5 @@
1
+ # Type Alias: RightsManagementDapComponentType
2
+
3
+ > **RightsManagementDapComponentType** = *typeof* [`RightsManagementDapComponentType`](../variables/RightsManagementDapComponentType.md)\[keyof *typeof* [`RightsManagementDapComponentType`](../variables/RightsManagementDapComponentType.md)\]
4
+
5
+ Rights management DAP component types.
@@ -0,0 +1,23 @@
1
+ # Type Alias: RightsManagementDarpComponentConfig
2
+
3
+ > **RightsManagementDarpComponentConfig** = `object`
4
+
5
+ Rights management DARP component config types.
6
+
7
+ ## Properties
8
+
9
+ ### type
10
+
11
+ > **type**: *typeof* [`Service`](../variables/RightsManagementDarpComponentType.md#service)
12
+
13
+ ***
14
+
15
+ ### options
16
+
17
+ > **options**: `IDataAccessRequestPointServiceConstructorOptions` & `object`
18
+
19
+ #### Type Declaration
20
+
21
+ ##### negotiatorModulesConfig?
22
+
23
+ > `optional` **negotiatorModulesConfig**: `IEngineModuleConfig`[]
@@ -0,0 +1,5 @@
1
+ # Type Alias: RightsManagementDarpComponentType
2
+
3
+ > **RightsManagementDarpComponentType** = *typeof* [`RightsManagementDarpComponentType`](../variables/RightsManagementDarpComponentType.md)\[keyof *typeof* [`RightsManagementDarpComponentType`](../variables/RightsManagementDarpComponentType.md)\]
4
+
5
+ Rights management DARP component types.
@@ -14,4 +14,10 @@ Rights management PDP component config types.
14
14
 
15
15
  ### options?
16
16
 
17
- > `optional` **options**: `IPolicyDecisionPointServiceConstructorOptions`
17
+ > `optional` **options**: `IPolicyDecisionPointServiceConstructorOptions` & `object`
18
+
19
+ #### Type Declaration
20
+
21
+ ##### arbiterModulesConfig?
22
+
23
+ > `optional` **arbiterModulesConfig**: `IEngineModuleConfig`[]
@@ -1,5 +1,5 @@
1
1
  # Type Alias: RightsManagementPnpComponentConfig
2
2
 
3
- > **RightsManagementPnpComponentConfig** = \{ `type`: *typeof* [`Service`](../variables/RightsManagementPnpComponentType.md#service); `options?`: `IPolicyNegotiationPointServiceConstructorOptions` & `object`; \} \| \{ `type`: *typeof* [`RestClient`](../variables/RightsManagementPnpComponentType.md#restclient); `options`: `IBaseRestClientConfig`; \}
3
+ > **RightsManagementPnpComponentConfig** = \{ `type`: *typeof* [`Service`](../variables/RightsManagementPnpComponentType.md#service); `options`: `IPolicyNegotiationPointServiceConstructorOptions` & `object`; \} \| \{ `type`: *typeof* [`RestClient`](../variables/RightsManagementPnpComponentType.md#restclient); `options`: `IBaseRestClientConfig`; \}
4
4
 
5
5
  Rights management PNP component config types.
@@ -0,0 +1,19 @@
1
+ # Variable: RightsManagementDapComponentType
2
+
3
+ > `const` **RightsManagementDapComponentType**: `object`
4
+
5
+ Rights management DAP component types.
6
+
7
+ ## Type Declaration
8
+
9
+ ### Service
10
+
11
+ > `readonly` **Service**: `"service"` = `"service"`
12
+
13
+ Service.
14
+
15
+ ### RestClient
16
+
17
+ > `readonly` **RestClient**: `"rest-client"` = `"rest-client"`
18
+
19
+ REST client.
@@ -0,0 +1,13 @@
1
+ # Variable: RightsManagementDarpComponentType
2
+
3
+ > `const` **RightsManagementDarpComponentType**: `object`
4
+
5
+ Rights management DARP component types.
6
+
7
+ ## Type Declaration
8
+
9
+ ### Service
10
+
11
+ > `readonly` **Service**: `"service"` = `"service"`
12
+
13
+ Service.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/engine-types",
3
- "version": "0.0.2-next.13",
3
+ "version": "0.0.2-next.14",
4
4
  "description": "Types to use in an engine.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -51,8 +51,8 @@
51
51
  "@twin.org/document-management-models": "next",
52
52
  "@twin.org/document-management-rest-client": "next",
53
53
  "@twin.org/document-management-service": "next",
54
- "@twin.org/engine-core": "0.0.2-next.13",
55
- "@twin.org/engine-models": "0.0.2-next.13",
54
+ "@twin.org/engine-core": "0.0.2-next.14",
55
+ "@twin.org/engine-models": "0.0.2-next.14",
56
56
  "@twin.org/entity": "next",
57
57
  "@twin.org/entity-storage-connector-cosmosdb": "next",
58
58
  "@twin.org/entity-storage-connector-dynamodb": "next",
@@ -99,6 +99,7 @@
99
99
  "@twin.org/nft-models": "next",
100
100
  "@twin.org/nft-rest-client": "next",
101
101
  "@twin.org/nft-service": "next",
102
+ "@twin.org/rights-management-dap-service": "next",
102
103
  "@twin.org/rights-management-models": "next",
103
104
  "@twin.org/rights-management-pap-service": "next",
104
105
  "@twin.org/rights-management-pdp-service": "next",
@@ -1,9 +0,0 @@
1
- import type { IPolicyNegotiationRequestPointServiceConstructorOptions } from "@twin.org/rights-management-pnp-service";
2
- import type { RightsManagementPnrpComponentType } from "../types/rightsManagementPnrpComponentType";
3
- /**
4
- * Rights management PNRP component config types.
5
- */
6
- export type RightsManagementPnrpComponentConfig = {
7
- type: typeof RightsManagementPnrpComponentType.Service;
8
- options: IPolicyNegotiationRequestPointServiceConstructorOptions;
9
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Rights management PNRP component types.
3
- */
4
- export declare const RightsManagementPnrpComponentType: {
5
- /**
6
- * Service.
7
- */
8
- readonly Service: "service";
9
- };
10
- /**
11
- * Rights management PNRP component types.
12
- */
13
- export type RightsManagementPnrpComponentType = (typeof RightsManagementPnrpComponentType)[keyof typeof RightsManagementPnrpComponentType];
@@ -1,17 +0,0 @@
1
- # Type Alias: RightsManagementPnrpComponentConfig
2
-
3
- > **RightsManagementPnrpComponentConfig** = `object`
4
-
5
- Rights management PNRP component config types.
6
-
7
- ## Properties
8
-
9
- ### type
10
-
11
- > **type**: *typeof* [`Service`](../variables/RightsManagementPnrpComponentType.md#service)
12
-
13
- ***
14
-
15
- ### options
16
-
17
- > **options**: `IPolicyNegotiationRequestPointServiceConstructorOptions`
@@ -1,5 +0,0 @@
1
- # Type Alias: RightsManagementPnrpComponentType
2
-
3
- > **RightsManagementPnrpComponentType** = *typeof* [`RightsManagementPnrpComponentType`](../variables/RightsManagementPnrpComponentType.md)\[keyof *typeof* [`RightsManagementPnrpComponentType`](../variables/RightsManagementPnrpComponentType.md)\]
4
-
5
- Rights management PNRP component types.
@@ -1,13 +0,0 @@
1
- # Variable: RightsManagementPnrpComponentType
2
-
3
- > `const` **RightsManagementPnrpComponentType**: `object`
4
-
5
- Rights management PNRP component types.
6
-
7
- ## Type Declaration
8
-
9
- ### Service
10
-
11
- > `readonly` **Service**: `"service"` = `"service"`
12
-
13
- Service.