@twin.org/federated-catalogue-models 0.0.2-next.4 → 0.0.2-next.6
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/dist/types/models/IFederatedCatalogueComponent.d.ts +12 -12
- package/dist/types/models/api/IDataResourceListRequest.d.ts +2 -2
- package/dist/types/models/api/IDataSpaceConnectorListRequest.d.ts +2 -2
- package/dist/types/models/api/IParticipantListRequest.d.ts +2 -2
- package/dist/types/models/api/IServiceOfferingListRequest.d.ts +2 -2
- package/docs/changelog.md +15 -0
- package/docs/reference/interfaces/IComplianceCredential.md +1 -1
- package/docs/reference/interfaces/IDataResourceListRequest.md +3 -3
- package/docs/reference/interfaces/IDataSpaceConnectorListRequest.md +3 -3
- package/docs/reference/interfaces/IFederatedCatalogueComponent.md +24 -16
- package/docs/reference/interfaces/IParticipantListRequest.md +3 -3
- package/docs/reference/interfaces/IServiceOfferingListRequest.md +3 -3
- package/package.json +17 -2
|
@@ -20,13 +20,13 @@ export interface IFederatedCatalogueComponent extends IComponent {
|
|
|
20
20
|
* @param participant The identity of the participant.
|
|
21
21
|
* @param legalRegistrationNumber The legal registration number.
|
|
22
22
|
* @param lrnType The legal registration number type (EORI, VATID, GLEIF, Kenya's PIN, etc.)
|
|
23
|
-
* @param cursor The cursor to request the next
|
|
24
|
-
* @param
|
|
23
|
+
* @param cursor The cursor to request the next chunk of entities.
|
|
24
|
+
* @param limit Limit the number of entities to return.
|
|
25
25
|
* @returns All the entities for the storage matching the conditions,
|
|
26
26
|
* and a cursor which can be used to request more entities.
|
|
27
27
|
* @throws NotImplementedError if the implementation does not support retrieval.
|
|
28
28
|
*/
|
|
29
|
-
queryParticipants(participant?: string, legalRegistrationNumber?: string, lrnType?: string, cursor?: string,
|
|
29
|
+
queryParticipants(participant?: string, legalRegistrationNumber?: string, lrnType?: string, cursor?: string, limit?: number): Promise<IParticipantList>;
|
|
30
30
|
/**
|
|
31
31
|
* Registers a Data Space Connector to the service.
|
|
32
32
|
* @param credential The credential as JWT.
|
|
@@ -37,13 +37,13 @@ export interface IFederatedCatalogueComponent extends IComponent {
|
|
|
37
37
|
* Query the federated catalogue.
|
|
38
38
|
* @param id Data Space Connector Id.
|
|
39
39
|
* @param maintainer The identity of the participant maintaining the Data Space Connector.
|
|
40
|
-
* @param cursor The cursor to request the next
|
|
41
|
-
* @param
|
|
40
|
+
* @param cursor The cursor to request the next chunk of entities.
|
|
41
|
+
* @param limit Limit the number of entities to return.
|
|
42
42
|
* @returns All the entities for the storage matching the conditions,
|
|
43
43
|
* and a cursor which can be used to request more entities.
|
|
44
44
|
* @throws NotImplementedError if the implementation does not support retrieval.
|
|
45
45
|
*/
|
|
46
|
-
queryDataSpaceConnectors(id?: string, maintainer?: string, cursor?: string,
|
|
46
|
+
queryDataSpaceConnectors(id?: string, maintainer?: string, cursor?: string, limit?: number): Promise<IDataSpaceConnectorList>;
|
|
47
47
|
/**
|
|
48
48
|
* Registers a service offering Credential to the service.
|
|
49
49
|
* @param credential The credential as JWT.
|
|
@@ -60,24 +60,24 @@ export interface IFederatedCatalogueComponent extends IComponent {
|
|
|
60
60
|
* Query the federated catalogue.
|
|
61
61
|
* @param id Service Offering id.
|
|
62
62
|
* @param providedBy The identity of the participant providing the Offering.
|
|
63
|
-
* @param cursor The cursor to request the next
|
|
64
|
-
* @param
|
|
63
|
+
* @param cursor The cursor to request the next chunk of entities.
|
|
64
|
+
* @param limit Limit the number of entities to return.
|
|
65
65
|
* @returns All the entities for the storage matching the conditions,
|
|
66
66
|
* and a cursor which can be used to request more entities.
|
|
67
67
|
* @throws NotImplementedError if the implementation does not support retrieval.
|
|
68
68
|
*/
|
|
69
|
-
queryServiceOfferings(id?: string, providedBy?: string, cursor?: string,
|
|
69
|
+
queryServiceOfferings(id?: string, providedBy?: string, cursor?: string, limit?: number): Promise<IServiceOfferingList>;
|
|
70
70
|
/**
|
|
71
71
|
* Query the federated catalogue.
|
|
72
72
|
* @param id The id of the Data Resource.
|
|
73
73
|
* @param producedBy The identity of the participant producing the data behind the data resource.
|
|
74
|
-
* @param cursor The cursor to request the next
|
|
75
|
-
* @param
|
|
74
|
+
* @param cursor The cursor to request the next chunk of entities.
|
|
75
|
+
* @param limit Limit the number of entities to return.
|
|
76
76
|
* @returns All the entities for the storage matching the conditions,
|
|
77
77
|
* and a cursor which can be used to request more entities.
|
|
78
78
|
* @throws NotImplementedError if the implementation does not support retrieval.
|
|
79
79
|
*/
|
|
80
|
-
queryDataResources(id?: string, producedBy?: string, cursor?: string,
|
|
80
|
+
queryDataResources(id?: string, producedBy?: string, cursor?: string, limit?: number): Promise<IDataResourceList>;
|
|
81
81
|
/**
|
|
82
82
|
* Returns a Federated Catalogue entry.
|
|
83
83
|
* @param entryType The type of entry.
|
|
@@ -20,8 +20,8 @@ export interface IDataResourceListRequest extends IFederatedCatalogueGetRequest
|
|
|
20
20
|
*/
|
|
21
21
|
cursor?: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Limit the number of entities to return.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
limit?: string;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
@@ -20,8 +20,8 @@ export interface IDataSpaceConnectorListRequest extends IFederatedCatalogueGetRe
|
|
|
20
20
|
*/
|
|
21
21
|
cursor?: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Limit the number of entities to return.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
limit?: string;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
@@ -24,8 +24,8 @@ export interface IParticipantListRequest extends IFederatedCatalogueGetRequest {
|
|
|
24
24
|
*/
|
|
25
25
|
cursor?: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Limit the number of entities to return.
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
limit?: string;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
@@ -20,8 +20,8 @@ export interface IServiceOfferingListRequest extends IFederatedCatalogueGetReque
|
|
|
20
20
|
*/
|
|
21
21
|
cursor?: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Limit the number of entities to return.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
limit?: string;
|
|
26
26
|
};
|
|
27
27
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @twin.org/federated-catalogue-models - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.6](https://github.com/twinfoundation/federated-catalogue/compare/federated-catalogue-models-v0.0.2-next.5...federated-catalogue-models-v0.0.2-next.6) (2025-10-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **federated-catalogue-models:** Synchronize repo versions
|
|
9
|
+
|
|
10
|
+
## [0.0.2-next.5](https://github.com/twinfoundation/federated-catalogue/compare/federated-catalogue-models-v0.0.2-next.4...federated-catalogue-models-v0.0.2-next.5) (2025-10-09)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* add validate-locales ([3d8d60d](https://github.com/twinfoundation/federated-catalogue/commit/3d8d60d9291e5a6f8c6d4562d6a862456a9917bc))
|
|
16
|
+
* simplify node ([e80db0e](https://github.com/twinfoundation/federated-catalogue/commit/e80db0e1b4935daaa7ff7d4343280efaa6250bf8))
|
|
17
|
+
|
|
3
18
|
## [0.0.2-next.4](https://github.com/twinfoundation/federated-catalogue/compare/federated-catalogue-models-v0.0.2-next.3...federated-catalogue-models-v0.0.2-next.4) (2025-09-29)
|
|
4
19
|
|
|
5
20
|
|
|
@@ -10,7 +10,7 @@ A Compliance credential.
|
|
|
10
10
|
|
|
11
11
|
### @context
|
|
12
12
|
|
|
13
|
-
> **@context**: \[`"https://www.w3.org/ns/credentials/v2"`, `"https://
|
|
13
|
+
> **@context**: \[`"https://www.w3.org/ns/credentials/v2"`, `"https://schema.twindev.org/gaia-x-loire/"`, `"https://w3id.org/security/suites/jws-2020/v1"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
14
14
|
|
|
15
15
|
The LD Context.
|
|
16
16
|
|
|
@@ -32,11 +32,11 @@ The service provider.
|
|
|
32
32
|
|
|
33
33
|
The optional cursor to get next chunk.
|
|
34
34
|
|
|
35
|
-
####
|
|
35
|
+
#### limit?
|
|
36
36
|
|
|
37
|
-
> `optional` **
|
|
37
|
+
> `optional` **limit**: `string`
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
Limit the number of entities to return.
|
|
40
40
|
|
|
41
41
|
***
|
|
42
42
|
|
|
@@ -32,11 +32,11 @@ The maintainer
|
|
|
32
32
|
|
|
33
33
|
The optional cursor to get next chunk.
|
|
34
34
|
|
|
35
|
-
####
|
|
35
|
+
#### limit?
|
|
36
36
|
|
|
37
|
-
> `optional` **
|
|
37
|
+
> `optional` **limit**: `string`
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
Limit the number of entities to return.
|
|
40
40
|
|
|
41
41
|
***
|
|
42
42
|
|
|
@@ -6,6 +6,14 @@ Interface describing a Federated Catalogue Contract.
|
|
|
6
6
|
|
|
7
7
|
- `IComponent`
|
|
8
8
|
|
|
9
|
+
## Indexable
|
|
10
|
+
|
|
11
|
+
\[`key`: `string`\]: `any`
|
|
12
|
+
|
|
13
|
+
All methods are optional, so we introduce an index signature to allow
|
|
14
|
+
any additional properties or methods, which removes the TypeScript error where
|
|
15
|
+
the class has no properties in common with the type.
|
|
16
|
+
|
|
9
17
|
## Methods
|
|
10
18
|
|
|
11
19
|
### registerComplianceCredential()
|
|
@@ -32,7 +40,7 @@ The participant Id (usually a DID).
|
|
|
32
40
|
|
|
33
41
|
### queryParticipants()
|
|
34
42
|
|
|
35
|
-
> **queryParticipants**(`participant?`, `legalRegistrationNumber?`, `lrnType?`, `cursor?`, `
|
|
43
|
+
> **queryParticipants**(`participant?`, `legalRegistrationNumber?`, `lrnType?`, `cursor?`, `limit?`): `Promise`\<[`IParticipantList`](IParticipantList.md)\>
|
|
36
44
|
|
|
37
45
|
Query the federated catalogue.
|
|
38
46
|
|
|
@@ -60,13 +68,13 @@ The legal registration number type (EORI, VATID, GLEIF, Kenya's PIN, etc.)
|
|
|
60
68
|
|
|
61
69
|
`string`
|
|
62
70
|
|
|
63
|
-
The cursor to request the next
|
|
71
|
+
The cursor to request the next chunk of entities.
|
|
64
72
|
|
|
65
|
-
#####
|
|
73
|
+
##### limit?
|
|
66
74
|
|
|
67
75
|
`number`
|
|
68
76
|
|
|
69
|
-
|
|
77
|
+
Limit the number of entities to return.
|
|
70
78
|
|
|
71
79
|
#### Returns
|
|
72
80
|
|
|
@@ -105,7 +113,7 @@ The Data Space Connector Id registered.
|
|
|
105
113
|
|
|
106
114
|
### queryDataSpaceConnectors()
|
|
107
115
|
|
|
108
|
-
> **queryDataSpaceConnectors**(`id?`, `maintainer?`, `cursor?`, `
|
|
116
|
+
> **queryDataSpaceConnectors**(`id?`, `maintainer?`, `cursor?`, `limit?`): `Promise`\<[`IDataSpaceConnectorList`](IDataSpaceConnectorList.md)\>
|
|
109
117
|
|
|
110
118
|
Query the federated catalogue.
|
|
111
119
|
|
|
@@ -127,13 +135,13 @@ The identity of the participant maintaining the Data Space Connector.
|
|
|
127
135
|
|
|
128
136
|
`string`
|
|
129
137
|
|
|
130
|
-
The cursor to request the next
|
|
138
|
+
The cursor to request the next chunk of entities.
|
|
131
139
|
|
|
132
|
-
#####
|
|
140
|
+
##### limit?
|
|
133
141
|
|
|
134
142
|
`number`
|
|
135
143
|
|
|
136
|
-
|
|
144
|
+
Limit the number of entities to return.
|
|
137
145
|
|
|
138
146
|
#### Returns
|
|
139
147
|
|
|
@@ -194,7 +202,7 @@ The Id of the Data Resources registered.
|
|
|
194
202
|
|
|
195
203
|
### queryServiceOfferings()
|
|
196
204
|
|
|
197
|
-
> **queryServiceOfferings**(`id?`, `providedBy?`, `cursor?`, `
|
|
205
|
+
> **queryServiceOfferings**(`id?`, `providedBy?`, `cursor?`, `limit?`): `Promise`\<[`IServiceOfferingList`](IServiceOfferingList.md)\>
|
|
198
206
|
|
|
199
207
|
Query the federated catalogue.
|
|
200
208
|
|
|
@@ -216,13 +224,13 @@ The identity of the participant providing the Offering.
|
|
|
216
224
|
|
|
217
225
|
`string`
|
|
218
226
|
|
|
219
|
-
The cursor to request the next
|
|
227
|
+
The cursor to request the next chunk of entities.
|
|
220
228
|
|
|
221
|
-
#####
|
|
229
|
+
##### limit?
|
|
222
230
|
|
|
223
231
|
`number`
|
|
224
232
|
|
|
225
|
-
|
|
233
|
+
Limit the number of entities to return.
|
|
226
234
|
|
|
227
235
|
#### Returns
|
|
228
236
|
|
|
@@ -239,7 +247,7 @@ NotImplementedError if the implementation does not support retrieval.
|
|
|
239
247
|
|
|
240
248
|
### queryDataResources()
|
|
241
249
|
|
|
242
|
-
> **queryDataResources**(`id?`, `producedBy?`, `cursor?`, `
|
|
250
|
+
> **queryDataResources**(`id?`, `producedBy?`, `cursor?`, `limit?`): `Promise`\<[`IDataResourceList`](IDataResourceList.md)\>
|
|
243
251
|
|
|
244
252
|
Query the federated catalogue.
|
|
245
253
|
|
|
@@ -261,13 +269,13 @@ The identity of the participant producing the data behind the data resource.
|
|
|
261
269
|
|
|
262
270
|
`string`
|
|
263
271
|
|
|
264
|
-
The cursor to request the next
|
|
272
|
+
The cursor to request the next chunk of entities.
|
|
265
273
|
|
|
266
|
-
#####
|
|
274
|
+
##### limit?
|
|
267
275
|
|
|
268
276
|
`number`
|
|
269
277
|
|
|
270
|
-
|
|
278
|
+
Limit the number of entities to return.
|
|
271
279
|
|
|
272
280
|
#### Returns
|
|
273
281
|
|
|
@@ -54,8 +54,8 @@ The legal registration number type.
|
|
|
54
54
|
|
|
55
55
|
The optional cursor to get next chunk.
|
|
56
56
|
|
|
57
|
-
####
|
|
57
|
+
#### limit?
|
|
58
58
|
|
|
59
|
-
> `optional` **
|
|
59
|
+
> `optional` **limit**: `string`
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
Limit the number of entities to return.
|
|
@@ -48,8 +48,8 @@ The service provider.
|
|
|
48
48
|
|
|
49
49
|
The optional cursor to get next chunk.
|
|
50
50
|
|
|
51
|
-
####
|
|
51
|
+
#### limit?
|
|
52
52
|
|
|
53
|
-
> `optional` **
|
|
53
|
+
> `optional` **limit**: `string`
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
Limit the number of entities to return.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/federated-catalogue-models",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.6",
|
|
4
4
|
"description": "Models which define the structure of the Federated Catalogue Service",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,5 +41,20 @@
|
|
|
41
41
|
"dist/types",
|
|
42
42
|
"locales",
|
|
43
43
|
"docs"
|
|
44
|
-
]
|
|
44
|
+
],
|
|
45
|
+
"keywords": [
|
|
46
|
+
"twin",
|
|
47
|
+
"trade",
|
|
48
|
+
"iota",
|
|
49
|
+
"framework",
|
|
50
|
+
"blockchain",
|
|
51
|
+
"federated-catalogue",
|
|
52
|
+
"models",
|
|
53
|
+
"types",
|
|
54
|
+
"schemas"
|
|
55
|
+
],
|
|
56
|
+
"bugs": {
|
|
57
|
+
"url": "git+https://github.com/twinfoundation/federated-catalogue/issues"
|
|
58
|
+
},
|
|
59
|
+
"homepage": "https://twindev.org"
|
|
45
60
|
}
|