@twin.org/federated-catalogue-service 0.0.1-next.10

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 (45) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +21 -0
  3. package/dist/cjs/index.cjs +2122 -0
  4. package/dist/esm/index.mjs +2104 -0
  5. package/dist/types/entities/dataResourceEntry.d.ts +59 -0
  6. package/dist/types/entities/dataSpaceConnectorEntry.d.ts +66 -0
  7. package/dist/types/entities/participantEntry.d.ts +42 -0
  8. package/dist/types/entities/serviceOfferingEntry.d.ts +55 -0
  9. package/dist/types/federatedCatalogueRoutes.d.ts +113 -0
  10. package/dist/types/federatedCatalogueService.d.ts +142 -0
  11. package/dist/types/index.d.ts +10 -0
  12. package/dist/types/models/IFederatedCatalogueServiceConfig.d.ts +15 -0
  13. package/dist/types/models/IFederatedCatalogueServiceConstructorOptions.d.ts +38 -0
  14. package/dist/types/restEntryPoints.d.ts +2 -0
  15. package/dist/types/schema.d.ts +4 -0
  16. package/dist/types/verification/complianceCredentialVerificationService.d.ts +32 -0
  17. package/docs/changelog.md +143 -0
  18. package/docs/examples.md +1 -0
  19. package/docs/open-api/spec.json +3434 -0
  20. package/docs/reference/classes/DataResourceEntry.md +118 -0
  21. package/docs/reference/classes/DataSpaceConnectorEntry.md +133 -0
  22. package/docs/reference/classes/FederatedCatalogueService.md +389 -0
  23. package/docs/reference/classes/ParticipantEntry.md +85 -0
  24. package/docs/reference/classes/ServiceOfferingEntry.md +109 -0
  25. package/docs/reference/functions/complianceCredentialPresentation.md +37 -0
  26. package/docs/reference/functions/dataResourceCredentialPresentation.md +37 -0
  27. package/docs/reference/functions/dataResourceGet.md +31 -0
  28. package/docs/reference/functions/dataResourceList.md +31 -0
  29. package/docs/reference/functions/dataSpaceConnectorCredentialPresentation.md +37 -0
  30. package/docs/reference/functions/dataSpaceConnectorGet.md +31 -0
  31. package/docs/reference/functions/dataSpaceConnectorList.md +31 -0
  32. package/docs/reference/functions/generateRestRoutesFederatedCatalogue.md +25 -0
  33. package/docs/reference/functions/initSchema.md +9 -0
  34. package/docs/reference/functions/participantGet.md +31 -0
  35. package/docs/reference/functions/participantList.md +31 -0
  36. package/docs/reference/functions/serviceOfferingCredentialPresentation.md +37 -0
  37. package/docs/reference/functions/serviceOfferingGet.md +31 -0
  38. package/docs/reference/functions/serviceOfferingList.md +31 -0
  39. package/docs/reference/index.md +36 -0
  40. package/docs/reference/interfaces/IFederatedCatalogueServiceConfig.md +21 -0
  41. package/docs/reference/interfaces/IFederatedCatalogueServiceConstructorOptions.md +83 -0
  42. package/docs/reference/variables/restEntryPoints.md +3 -0
  43. package/docs/reference/variables/tagsFederatedCatalogue.md +5 -0
  44. package/locales/en.json +21 -0
  45. package/package.json +52 -0
@@ -0,0 +1,109 @@
1
+ # Class: ServiceOfferingEntry
2
+
3
+ Service Offering Entry.
4
+
5
+ ## Constructors
6
+
7
+ ### Constructor
8
+
9
+ > **new ServiceOfferingEntry**(): `ServiceOfferingEntry`
10
+
11
+ #### Returns
12
+
13
+ `ServiceOfferingEntry`
14
+
15
+ ## Properties
16
+
17
+ ### id
18
+
19
+ > **id**: `string`
20
+
21
+ The service Id.
22
+
23
+ ***
24
+
25
+ ### issuer
26
+
27
+ > **issuer**: `string`
28
+
29
+ The trusted issuer of the compliance credential associated with
30
+
31
+ ***
32
+
33
+ ### name
34
+
35
+ > **name**: `string`
36
+
37
+ The service name.
38
+
39
+ ***
40
+
41
+ ### description?
42
+
43
+ > `optional` **description**: `string`
44
+
45
+ The service description.
46
+
47
+ ***
48
+
49
+ ### providedBy
50
+
51
+ > **providedBy**: `string`
52
+
53
+ The provider Id
54
+
55
+ ***
56
+
57
+ ### endpoint
58
+
59
+ > **endpoint**: `IEndpoint`
60
+
61
+ The REST endpoint
62
+
63
+ ***
64
+
65
+ ### servicePolicy
66
+
67
+ > **servicePolicy**: `IOdrlPolicy`[]
68
+
69
+ The policy
70
+
71
+ ***
72
+
73
+ ### aggregationOfResources?
74
+
75
+ > `optional` **aggregationOfResources**: `string`[]
76
+
77
+ Resources aggregated
78
+
79
+ ***
80
+
81
+ ### validFrom
82
+
83
+ > **validFrom**: `string`
84
+
85
+ Valid from
86
+
87
+ ***
88
+
89
+ ### validUntil
90
+
91
+ > **validUntil**: `string`
92
+
93
+ Valid to
94
+
95
+ ***
96
+
97
+ ### dateCreated
98
+
99
+ > **dateCreated**: `string`
100
+
101
+ Date created
102
+
103
+ ***
104
+
105
+ ### evidence
106
+
107
+ > **evidence**: `string`[]
108
+
109
+ Evidences
@@ -0,0 +1,37 @@
1
+ # Function: complianceCredentialPresentation()
2
+
3
+ > **complianceCredentialPresentation**(`baseRouteName`, `httpRequestContext`, `factoryServiceName`, `request`): `Promise`\<`ICreatedResponse`\>
4
+
5
+ Register a new participant.
6
+
7
+ ## Parameters
8
+
9
+ ### baseRouteName
10
+
11
+ `string`
12
+
13
+ The base route name.
14
+
15
+ ### httpRequestContext
16
+
17
+ `IHttpRequestContext`
18
+
19
+ The request context for the API.
20
+
21
+ ### factoryServiceName
22
+
23
+ `string`
24
+
25
+ The name of the service to use in the routes.
26
+
27
+ ### request
28
+
29
+ `ICompliancePresentationRequest`
30
+
31
+ The request.
32
+
33
+ ## Returns
34
+
35
+ `Promise`\<`ICreatedResponse`\>
36
+
37
+ The response object with additional http response properties.
@@ -0,0 +1,37 @@
1
+ # Function: dataResourceCredentialPresentation()
2
+
3
+ > **dataResourceCredentialPresentation**(`baseRouteName`, `httpRequestContext`, `factoryServiceName`, `request`): `Promise`\<`ICreatedResponse`\>
4
+
5
+ Register a new data resource.
6
+
7
+ ## Parameters
8
+
9
+ ### baseRouteName
10
+
11
+ `string`
12
+
13
+ The base route name.
14
+
15
+ ### httpRequestContext
16
+
17
+ `IHttpRequestContext`
18
+
19
+ The request context for the API.
20
+
21
+ ### factoryServiceName
22
+
23
+ `string`
24
+
25
+ The name of the service to use in the routes.
26
+
27
+ ### request
28
+
29
+ `ICompliancePresentationRequest`
30
+
31
+ The request.
32
+
33
+ ## Returns
34
+
35
+ `Promise`\<`ICreatedResponse`\>
36
+
37
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: dataResourceGet()
2
+
3
+ > **dataResourceGet**(`httpRequestContext`, `factoryServiceName`, `request`): `Promise`\<`INotFoundResponse` \| `IDataResourceGetResponse`\>
4
+
5
+ Get a Data Resource entry.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### factoryServiceName
16
+
17
+ `string`
18
+
19
+ The name of the service to use in the routes.
20
+
21
+ ### request
22
+
23
+ `ICatalogueEntryGetRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`INotFoundResponse` \| `IDataResourceGetResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: dataResourceList()
2
+
3
+ > **dataResourceList**(`httpRequestContext`, `factoryServiceName`, `request`): `Promise`\<`IDataResourceListResponse`\>
4
+
5
+ Get a list of the data resource entries.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### factoryServiceName
16
+
17
+ `string`
18
+
19
+ The name of the service to use in the routes.
20
+
21
+ ### request
22
+
23
+ `IDataResourceListRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`IDataResourceListResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,37 @@
1
+ # Function: dataSpaceConnectorCredentialPresentation()
2
+
3
+ > **dataSpaceConnectorCredentialPresentation**(`baseRouteName`, `httpRequestContext`, `factoryServiceName`, `request`): `Promise`\<`ICreatedResponse`\>
4
+
5
+ Register a new data space connector.
6
+
7
+ ## Parameters
8
+
9
+ ### baseRouteName
10
+
11
+ `string`
12
+
13
+ the base route name.
14
+
15
+ ### httpRequestContext
16
+
17
+ `IHttpRequestContext`
18
+
19
+ The request context for the API.
20
+
21
+ ### factoryServiceName
22
+
23
+ `string`
24
+
25
+ The name of the service to use in the routes.
26
+
27
+ ### request
28
+
29
+ `ICompliancePresentationRequest`
30
+
31
+ The request.
32
+
33
+ ## Returns
34
+
35
+ `Promise`\<`ICreatedResponse`\>
36
+
37
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: dataSpaceConnectorGet()
2
+
3
+ > **dataSpaceConnectorGet**(`httpRequestContext`, `factoryServiceName`, `request`): `Promise`\<`INotFoundResponse` \| `IDataSpaceConnectorGetResponse`\>
4
+
5
+ Get a Data Space Connector entry.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### factoryServiceName
16
+
17
+ `string`
18
+
19
+ The name of the service to use in the routes.
20
+
21
+ ### request
22
+
23
+ `ICatalogueEntryGetRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`INotFoundResponse` \| `IDataSpaceConnectorGetResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: dataSpaceConnectorList()
2
+
3
+ > **dataSpaceConnectorList**(`httpRequestContext`, `factoryServiceName`, `request`): `Promise`\<`IDataSpaceConnectorListResponse`\>
4
+
5
+ Get a list of the data space connector entries.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### factoryServiceName
16
+
17
+ `string`
18
+
19
+ The name of the service to use in the routes.
20
+
21
+ ### request
22
+
23
+ `IDataSpaceConnectorListRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`IDataSpaceConnectorListResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,25 @@
1
+ # Function: generateRestRoutesFederatedCatalogue()
2
+
3
+ > **generateRestRoutesFederatedCatalogue**(`baseRouteName`, `factoryServiceName`): `IRestRoute`\<`any`, `any`\>[]
4
+
5
+ The REST routes for Federated Catalogue.
6
+
7
+ ## Parameters
8
+
9
+ ### baseRouteName
10
+
11
+ `string`
12
+
13
+ Prefix to prepend to the paths.
14
+
15
+ ### factoryServiceName
16
+
17
+ `string`
18
+
19
+ The name of the service to use in the routes store in the ServiceFactory.
20
+
21
+ ## Returns
22
+
23
+ `IRestRoute`\<`any`, `any`\>[]
24
+
25
+ The generated routes.
@@ -0,0 +1,9 @@
1
+ # Function: initSchema()
2
+
3
+ > **initSchema**(): `void`
4
+
5
+ Inits schemas.
6
+
7
+ ## Returns
8
+
9
+ `void`
@@ -0,0 +1,31 @@
1
+ # Function: participantGet()
2
+
3
+ > **participantGet**(`httpRequestContext`, `factoryServiceName`, `request`): `Promise`\<`IParticipantGetResponse` \| `INotFoundResponse`\>
4
+
5
+ Get a Participant entry.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### factoryServiceName
16
+
17
+ `string`
18
+
19
+ The name of the service to use in the routes.
20
+
21
+ ### request
22
+
23
+ `ICatalogueEntryGetRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`IParticipantGetResponse` \| `INotFoundResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: participantList()
2
+
3
+ > **participantList**(`httpRequestContext`, `factoryServiceName`, `request`): `Promise`\<`IParticipantListResponse`\>
4
+
5
+ Get a list of the participant entries.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### factoryServiceName
16
+
17
+ `string`
18
+
19
+ The name of the service to use in the routes.
20
+
21
+ ### request
22
+
23
+ `IParticipantListRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`IParticipantListResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,37 @@
1
+ # Function: serviceOfferingCredentialPresentation()
2
+
3
+ > **serviceOfferingCredentialPresentation**(`baseRouteName`, `httpRequestContext`, `factoryServiceName`, `request`): `Promise`\<`ICreatedResponse`\>
4
+
5
+ Register a new service offering.
6
+
7
+ ## Parameters
8
+
9
+ ### baseRouteName
10
+
11
+ `string`
12
+
13
+ The base route used.
14
+
15
+ ### httpRequestContext
16
+
17
+ `IHttpRequestContext`
18
+
19
+ The request context for the API.
20
+
21
+ ### factoryServiceName
22
+
23
+ `string`
24
+
25
+ The name of the service to use in the routes.
26
+
27
+ ### request
28
+
29
+ `ICompliancePresentationRequest`
30
+
31
+ The request.
32
+
33
+ ## Returns
34
+
35
+ `Promise`\<`ICreatedResponse`\>
36
+
37
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: serviceOfferingGet()
2
+
3
+ > **serviceOfferingGet**(`httpRequestContext`, `factoryServiceName`, `request`): `Promise`\<`INotFoundResponse` \| `IServiceOfferingGetResponse`\>
4
+
5
+ Get a Service Offering entry.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### factoryServiceName
16
+
17
+ `string`
18
+
19
+ The name of the service to use in the routes.
20
+
21
+ ### request
22
+
23
+ `ICatalogueEntryGetRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`INotFoundResponse` \| `IServiceOfferingGetResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: serviceOfferingList()
2
+
3
+ > **serviceOfferingList**(`httpRequestContext`, `factoryServiceName`, `request`): `Promise`\<`IServiceOfferingListResponse`\>
4
+
5
+ Get a list of the service offering entries.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### factoryServiceName
16
+
17
+ `string`
18
+
19
+ The name of the service to use in the routes.
20
+
21
+ ### request
22
+
23
+ `IServiceOfferingListRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`IServiceOfferingListResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,36 @@
1
+ # @twin.org/federated-catalogue-service
2
+
3
+ ## Classes
4
+
5
+ - [DataResourceEntry](classes/DataResourceEntry.md)
6
+ - [DataSpaceConnectorEntry](classes/DataSpaceConnectorEntry.md)
7
+ - [ParticipantEntry](classes/ParticipantEntry.md)
8
+ - [ServiceOfferingEntry](classes/ServiceOfferingEntry.md)
9
+ - [FederatedCatalogueService](classes/FederatedCatalogueService.md)
10
+
11
+ ## Interfaces
12
+
13
+ - [IFederatedCatalogueServiceConfig](interfaces/IFederatedCatalogueServiceConfig.md)
14
+ - [IFederatedCatalogueServiceConstructorOptions](interfaces/IFederatedCatalogueServiceConstructorOptions.md)
15
+
16
+ ## Variables
17
+
18
+ - [tagsFederatedCatalogue](variables/tagsFederatedCatalogue.md)
19
+ - [restEntryPoints](variables/restEntryPoints.md)
20
+
21
+ ## Functions
22
+
23
+ - [generateRestRoutesFederatedCatalogue](functions/generateRestRoutesFederatedCatalogue.md)
24
+ - [complianceCredentialPresentation](functions/complianceCredentialPresentation.md)
25
+ - [participantList](functions/participantList.md)
26
+ - [participantGet](functions/participantGet.md)
27
+ - [serviceOfferingCredentialPresentation](functions/serviceOfferingCredentialPresentation.md)
28
+ - [serviceOfferingList](functions/serviceOfferingList.md)
29
+ - [serviceOfferingGet](functions/serviceOfferingGet.md)
30
+ - [dataResourceCredentialPresentation](functions/dataResourceCredentialPresentation.md)
31
+ - [dataResourceList](functions/dataResourceList.md)
32
+ - [dataResourceGet](functions/dataResourceGet.md)
33
+ - [dataSpaceConnectorCredentialPresentation](functions/dataSpaceConnectorCredentialPresentation.md)
34
+ - [dataSpaceConnectorList](functions/dataSpaceConnectorList.md)
35
+ - [dataSpaceConnectorGet](functions/dataSpaceConnectorGet.md)
36
+ - [initSchema](functions/initSchema.md)
@@ -0,0 +1,21 @@
1
+ # Interface: IFederatedCatalogueServiceConfig
2
+
3
+ Federated Catalogue service configuration
4
+
5
+ ## Properties
6
+
7
+ ### subResourceCacheTtlMs?
8
+
9
+ > `optional` **subResourceCacheTtlMs**: `number`
10
+
11
+ The number of ms that sub-resources can live in the fetch cache.
12
+ 0 means they can live forever.
13
+ undefined means they are never cached.
14
+
15
+ ***
16
+
17
+ ### clearingHouseApproverList
18
+
19
+ > **clearingHouseApproverList**: `string`[]
20
+
21
+ Clearing House approver list
@@ -0,0 +1,83 @@
1
+ # Interface: IFederatedCatalogueServiceConstructorOptions
2
+
3
+ Federated Catalogue service options
4
+
5
+ ## Properties
6
+
7
+ ### identityResolverComponentType?
8
+
9
+ > `optional` **identityResolverComponentType**: `string`
10
+
11
+ The identity resolver component used.
12
+
13
+ ***
14
+
15
+ ### loggingConnectorType?
16
+
17
+ > `optional` **loggingConnectorType**: `string`
18
+
19
+ Logging connector type
20
+
21
+ ***
22
+
23
+ ### config
24
+
25
+ > **config**: [`IFederatedCatalogueServiceConfig`](IFederatedCatalogueServiceConfig.md)
26
+
27
+ The configuration of the Federated Catalogue service.
28
+
29
+ ***
30
+
31
+ ### participantEntityStorageType?
32
+
33
+ > `optional` **participantEntityStorageType**: `string`
34
+
35
+ The entity storage for participants.
36
+
37
+ #### Default
38
+
39
+ ```ts
40
+ participant-entry
41
+ ```
42
+
43
+ ***
44
+
45
+ ### dataResourceEntityStorageType?
46
+
47
+ > `optional` **dataResourceEntityStorageType**: `string`
48
+
49
+ The entity storage for data resources.
50
+
51
+ #### Default
52
+
53
+ ```ts
54
+ data-resource-entry
55
+ ```
56
+
57
+ ***
58
+
59
+ ### serviceOfferingEntityStorageType?
60
+
61
+ > `optional` **serviceOfferingEntityStorageType**: `string`
62
+
63
+ The entity storage for service offerings.
64
+
65
+ #### Default
66
+
67
+ ```ts
68
+ service-offering-entry
69
+ ```
70
+
71
+ ***
72
+
73
+ ### dataSpaceConnectorStorageType?
74
+
75
+ > `optional` **dataSpaceConnectorStorageType**: `string`
76
+
77
+ The entity storage for data space connectors.
78
+
79
+ #### Default
80
+
81
+ ```ts
82
+ data-space-connector-entry
83
+ ```
@@ -0,0 +1,3 @@
1
+ # Variable: restEntryPoints
2
+
3
+ > `const` **restEntryPoints**: `IRestRouteEntryPoint`[]
@@ -0,0 +1,5 @@
1
+ # Variable: tagsFederatedCatalogue
2
+
3
+ > `const` **tagsFederatedCatalogue**: `ITag`[]
4
+
5
+ The tag to associate with the routes.